
jp15sil24

Bing Speech Controlled By A Script
@TMesserschmidt
I tried the script from the tutorial "Add New AIML Categories with Voice." I encountered no errors, but the file created is always empty. To troubleshoot, I wrote a small script:
saywait("start script")
sleep(500)
controlCommand("Bing Speech Recognition", "StartListening")
sleep(4000)
controlCommand("Bing Speech Recognition", "StopListening")
sleep(1000)
print($BingSpeech)
saywait("script end")
This script runs without errors, but the Bing Speech Recognition does not seem to "listen," as the variable $BingSpeech
is always empty. When I use the Bing Speech Recognition skill manually, it works perfectly with both "Start Recording" and VAD (Voice Activity Detection). It appears that the "StartListening" command in the script does not communicate with the "Bing Speech Recognition" skill.
I have the same issue with the original script from the tutorial. I have redone the tutorial twice, but the problem persists. Could you please check what might be causing this issue?
@DJ_Sures you wrote " im not fully sure what it is you’re trying to do. Can you explain it? That’ll help" Originally ,I just wanted to use the program from the tutorial "add new aiml categories with your voice". As it did not work, i narrowed down the problem and it came out that the start listening into my script never triggered the bing speech recognition skill. The skill bing speech recognition itself works well either with manually start recording or using VAD. i attached pictures of my screen and the scripts provided by athena. I expect that when i clic on start in my script and i speak ,the bing speech recognition recognizes the phrase,words and then i could use the program in the tutorial
my screen>
Uncheck play wake sound and try again. That feature was introduced and may have an issue with controlcommand
yes it is ok. it works now. So I think we should always uncheck this feature. thanks
Looks like they fixed this issue in the latest update that was just released today. Thanks you!
I ran across this issue months ago and didn't report it. Sorry. I thought is was something I was doing wrong. Bad sound file or something.
I just downloaded the last update .I still have other issues with the script even after removing "stop listening".Possibly timing problem. not sure. i can get a new file with only the text, no aiml format and the test is truncated. So far I understand, you got a new file,text file and you have to insert the text into a formatted aiml file,it is not easy. Maybe i expected too much from the aiml script. I thought i get a new aiml formatted file that i could add into the aiml folder. So i gave up as it i was not really critical.