Surya

Utter - Utilizing more of SAPI (Speech Recognition UDF)

37 posts in this topic

#1 ·  Posted (edited)

Utter is a free ware windows API automation script.It can do most of the sapi dll functions."SAPI" stands for Windows Speech Reconition API,SAPI.dll is the file
which manages the speech recognition of windows Utter utilises most of the SAPI functions making use of the best potential of SAPI.dll,You can include speech 
recognition to your project by using utter.

Utter zipped and updated (new version with examples)

Modified ......: 12/04/2017
Version .......: 3.0.0.1
Author ........: Surya

I am new to autoit it sounds great and i love it while i am getting used to it so i want to write my own UDF in autoit first of all i thank all the forum members because i couldnt do it without research,So i wrote UTTER ^_^,Its is a UDF that uses most of the SAPI dll function or in simple words it can do many functions relating to the computers speech recognition  if you have any doubt in the code or have any bugs please notify me freely I will be always there to help its my first UDF so please notify me if you found any error Thank you! :)

Utter has been recently updated ,examples included.The zip can be downloaded here at the download section of autoit : Download utter

                                 !! CAUTION !!

REMEMBER TO SHUTDOWN THE INSTANCE OF CREATED RECOGNITION 
ENGINE BEFORE STARTING ANOTHER INSTANCE IF YOU START ANOTHER
WITHOUT SHUTTING THE PREVIOUS ONE DOWN IT WILL LEAD TO AN ERROR!

REMEMBER THAT "|" IS THE DEFAULT GUIDataSeparatorChar CHANGE IT 
ACCORDING TO YOUR NEEDS AND GRAMMAR DELIMITER IS GUIDataSeparatorChar
IF NO GUIDataSeparatorChar IS FOUND IN THE INPUT STRING THEN THE
ENTIRE STRING WOULD BE CONSIDERED AS ONE WORD!

DO NOT CALL THE INTERNAL FUNCTIONS THEY ARE TO BE CALLED INSIDE THE FUNCTION AND DO NOT 
CHANGE THE VALUE OF VARIABLES USED IN THE FUNCTION!

THE RECIEVING FUNCTIONS SHOULD HAVE ATLEAST ONE PARAMETER TO ACCEPT THE SPEECH COMMANDS
FROM THE _Utter_Speech_GrammarRecognize() FUNCTION

 

please report if you have any bugs/complaints

Edited by Surya
Updated file
1 person likes this

No matter whatever the challenge maybe control on the outcome its on you its always have been.

MY UDF: Transpond UDF (Sent vriables to Programs) , Utter UDF (Speech Recognition)

Share this post


Link to post
Share on other sites



i could use a little appreciation for making the script and for updating it  if nobody is there to use it what is its use of putting here

I have plenty of example scripts I have posted that have hundreds of views and no replies.  You will not find cheerleaders here, only questions and critique; and that's on the offhand that what you are doing is both what somebody needs to do, and how they want to do it.  Given the small fraction of users that frequent the forum, and the small fraction of them that actively post, and the small fraction of them that give two fx about your subject matter, consider any replies anomalous.

I find value in the effort of returning half of what i have taken, not in the result.

1 person likes this

,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

¿Why did you declare global variables inside of  functions?

 

Saludos

Share this post


Link to post
Share on other sites

 Boththose I am just 12 years old and would like to get something for my scripts as I have spent a lot of time making it with my schoolwork but what you said is correct thank you for the feedback 


No matter whatever the challenge maybe control on the outcome its on you its always have been.

MY UDF: Transpond UDF (Sent vriables to Programs) , Utter UDF (Speech Recognition)

Share this post


Link to post
Share on other sites

Understanding this stuff at 12 isnt reward enough?  my hobbies at 12 were lighting things on fire and watching things that were on fire.


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites

There's no need to re-declare the variable inside the function, just re-initialize it :)

Declaration

Global $someVariable = "SomeData"
(re)Initialization
$someVariable = "SomeOtherData"

 

If you are only twelve for real, keep it up not many kids your age take interest in jack shit these days. Here is a little stroke for your ego, search for my last post here :P
(Hint: I've been lurking a LONG time lol)

1 person likes this

Share this post


Link to post
Share on other sites

 I am just 12 years old

Hey Bro! Same country, similar age :D. Nice UDF :)


AutoIt.4.Life Clubrooms - Life is like a Donut (secret key)

Spoiler

My contributions to the AutoIt Community

Some messages & Apologizes:

If I hurt you, Please accept my apologies, I never (regardless of the situation) mean to hurt anybody!!!

Also, I am very busy with my project so I will appear in the last row of the online list, if you want to contact me: Email@TheDcoder.xyz

Or you can have a nice chat with me in freenode, I use the same nick on freenode too!

3fHNZJ.gif

PLEASE JOIN ##AutoIt AND HELP THE IRC AUTOIT COMMUNITY!

Share this post


Link to post
Share on other sites

I think you use wrong section in download

https://www.autoitscript.com/forum/files/category/24-scripting-and-development/

 

it should be:

https://www.autoitscript.com/forum/files/category/20-windows/

as this is UDF for one of Windows API

 


Signature beginning:   Wondering who uses AutoIT and what it can be used for ?
* GHAPI UDF - modest begining - comunication with GitHub REST API *
ADO.au3 UDF     POP3.au3 UDF     XML.au3 UDF    How to use IE.au3  UDF with  AutoIt v3.3.14.x  for other useful stuff click the following button

Spoiler

Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind. 

My contribution (my own projects): * Debenu Quick PDF Library - UDF * Debenu PDF Viewer SDK - UDF * Acrobat Reader - ActiveX Viewer * UDF for PDFCreator v1.x.x * XZip - UDF * AppCompatFlags UDF * CrowdinAPI UDF * _WinMergeCompare2Files() * _JavaExceptionAdd() * _IsBeta() * Writing DPI Awareness App - workaround * _AutoIt_RequiredVersion() * Chilkatsoft.au3 UDF * TeamViewer.au3 UDF * JavaManagement UDF * VIES over SOAP * WinSCP UDF * GHAPI UDF - modest begining - comunication with GitHub REST API *

My contribution to others projects or UDF based on  others projects: * _sql.au3 UDF  * POP3.au3 UDF *  RTF Printer - UDF * XML.au3 - BETA * ADO.au3 UDF SMTP Mailer UDF *

Useful links: * Forum Rules * Forum etiquette *  Forum Information and FAQs * How to post code on the forum * AutoIt Online Documentation * AutoIt Online Beta Documentation * SciTE4AutoIt3 getting started * Convert text blocks to AutoIt code * Games made in Autoit * Programming related sites * Polish AutoIt Tutorial * DllCall Code Generator * 

Wiki: Expand your knowledge - AutoIt Wiki * Collection of User Defined Functions * How to use HelpFile * Best coding practices * 

IE Related:  * How to use IE.au3  UDF with  AutoIt v3.3.14.x * Why isn't Autoit able to click a Javascript Dialog? * Clicking javascript button with no ID * IE document >> save as MHT file * IETab Switcher (by LarsJ ) * HTML Entities * _IEquerySelectorAll() (by uncommon) * 

I encourage you to read: * Global Vars * Best Coding Practices * Please explain code used in Help file for several File functions * OOP-like approach in AutoIt * UDF-Spec Questions *  EXAMPLE: How To Catch ConsoleWrite() output to a file or to CMD *

"Homo sum; humani nil a me alienum puto" - Publius Terentius Afer
"Program are meant to be read by humans and only incidentally for computers and execute" - Donald Knuth, "The Art of Computer Programming"
:naughty:  :ranting:, be  :) and       \\//_.

Anticipating Errors :  "Any program that accepts data from a user must include code to validate that data before sending it to the data store. You cannot rely on the data store, ...., or even your programming language to notify you of problems. You must check every byte entered by your users, making sure that data is the correct type for its field and that required fields are not empty."

Signature last update: 2017-06-04

Share this post


Link to post
Share on other sites

Well this are my suggestions.

Do no use Global into funtions. Autoit is able to make them work correclty. but is no correct in programming do that. (as far I understand I'm not a professional or anything).

Do not use Global every time when you set data in your variables.

If you going to use a Global Array don't need to return that array.

Keep going. at 12 I was working f**k. :/

I did no try the UDF because I don't have SAPI.

Saludos

 

Share this post


Link to post
Share on other sites

I do expect some examples with all UDFs. Is there any ?


My Contributions

UDF Link Viewer   --- A tool to visit the links of some most important UDFs 

 Includer_2  ----- A tool to type the #include statement automatically 

 Digits To Date  ----- date from 3 integer values

PrintList ----- prints arrays into console for testing.

 Alert  ------ An alternative for MsgBox 

 MousePosition ------- A simple tooltip display of mouse position

GRM Helper -------- A littile tool to help writing code with GUIRegisterMsg function

Access_UDF  -------- An UDF for working with access database files. (.*accdb only)

 

Share this post


Link to post
Share on other sites

I do expect some examples with all UDFs. Is there any ?

search for "Examples" string.

 

Saludos

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Similar Content

    • Imperial
      By Imperial
      How to make AutoIt Detect Sounds using the Microphone Input to hear you what you said
    • Surya
      By Surya
      Utter is simply a UDF created for the maximum utilization of SAPI (Speech Recognition API) in windows you can add your own words to be recognized by the computer you can set speed,picth and select the voice you want by speech synthesis included in windows.Utter can create a free grammar recognition engine as well as custom made grammar recognition engine suiting according to your need also it is flexible.The shutdown function of the UDF must be called before calling another one to destroy the current engine running when autoit closes the engine will also close many functionalities are included an update will be soon in future
    • wakillon
      By wakillon
      TinyClipToSpeech v 1.0.0.9

      Read Clipboard Text Content using Sapi Voice




      Access to all commands by Tray menu.

      If you doesn't have Sapi5 installed, script ask for download it.
      I know there is already some Text to speech scripts,
      but i wanted an easy access ( clipboard content and tray menu )
      and the possibility to change voice and settings while reading.
      Text can be displayed on desktop gradually as what is read.
      You can also save text to mp3 without need of read it.
      My preference goes to Scansoft voices, easy to found and install and with a good pronunciation qualty.

      As usual, some externals files are downloaded at first execution.

      Previous downloads : 199

      Update of 2012-07-01

      Source : TinyClipToSpeech v 1.0.0.9.au3

      Executable : TinyClipToSpeech.exe.html
      (Once this html file downloaded, double click on it for start the download)
      Hope you like it !