Aug 13, 2019 Replies: 41 Moved to https://www.b4x.com/android/forum/t...ogle-speech-recognition-without-popup.117640/ Last edited: May 11, 2020 Click to expand...
Johan Hormaza Well-Known Member Licensed User Longtime User Aug 13, 2019 #2 Great job friend ... It is super fast and also works without internet.
agraham Expert Licensed User Longtime User Aug 14, 2019 #3 Many thanks for this. It seems to work well, apart from the fact that owing to American prudery while it recognises various profanities it returns them in sanitised form such as "s***" and "b*****" (Well I had to try didn't I) I'm going to try to use it, with some text post processing, to enter lines of code in my on device Basic language IDE rather than enter code on the keyboard which can be quite laborious. Even with inevitably having to do some post-voice editing it could be faster - particularly on smaller devices. Last edited: Aug 14, 2019
Many thanks for this. It seems to work well, apart from the fact that owing to American prudery while it recognises various profanities it returns them in sanitised form such as "s***" and "b*****" (Well I had to try didn't I) I'm going to try to use it, with some text post processing, to enter lines of code in my on device Basic language IDE rather than enter code on the keyboard which can be quite laborious. Even with inevitably having to do some post-voice editing it could be faster - particularly on smaller devices.
Brandsum Well-Known Member Licensed User Aug 14, 2019 #4 agraham said: Many thanks for this. It seems to work well, apart from the fact that owing to American prudery while it recognises various profanities it returns them in sanitised form such as "s***" and "b*****" (Well I had to try didn't I) Click to expand... You can disable this. Open Google App Click on more option (bottom right corner) Click on Settings Click on voice Turn Hide offensive words off Or Open phone settings app Go to google option Click on Search, Assistant & Voice Click on voice Turn Hide offensive words off
agraham said: Many thanks for this. It seems to work well, apart from the fact that owing to American prudery while it recognises various profanities it returns them in sanitised form such as "s***" and "b*****" (Well I had to try didn't I) Click to expand... You can disable this. Open Google App Click on more option (bottom right corner) Click on Settings Click on voice Turn Hide offensive words off Or Open phone settings app Go to google option Click on Search, Assistant & Voice Click on voice Turn Hide offensive words off
agraham Expert Licensed User Longtime User Aug 14, 2019 #5 Brandsum said: Hide offensive words off Click to expand... Yay! What is RmsValue in the RMSChanged event - some sort of signal to noise measurement?
Brandsum said: Hide offensive words off Click to expand... Yay! What is RmsValue in the RMSChanged event - some sort of signal to noise measurement?
Brandsum Well-Known Member Licensed User Aug 14, 2019 #6 That's the sound level of the audio stream in dB unit. You can use this to show user voice input strength level.
That's the sound level of the audio stream in dB unit. You can use this to show user voice input strength level.
L leitor79 Active Member Licensed User Longtime User Aug 15, 2019 #7 Hi! Can the SR object be used within a service, or must it be within an activity? Thank you very much!
Hi! Can the SR object be used within a service, or must it be within an activity? Thank you very much!
Brandsum Well-Known Member Licensed User Aug 15, 2019 #8 leitor79 said: Hi! Can the SR object be used within a service, or must it be within an activity? Thank you very much! Click to expand... Yes you can use this within service.
leitor79 said: Hi! Can the SR object be used within a service, or must it be within an activity? Thank you very much! Click to expand... Yes you can use this within service.
agraham Expert Licensed User Longtime User Aug 15, 2019 #9 The signature for the RmsChanged event in the XML is wrong. It should be float or double, not int. Declaring it as Int causes a runtime exception.
The signature for the RmsChanged event in the XML is wrong. It should be float or double, not int. Declaring it as Int causes a runtime exception.
Brandsum Well-Known Member Licensed User Aug 15, 2019 #10 My bad!! Thanks for pointing out. I've updated the library in the first post.
agraham Expert Licensed User Longtime User Aug 15, 2019 #11 This library seems to be a compiled B4A class module so why not just post the source so we can see what is going on and modify it if we need to?
This library seems to be a compiled B4A class module so why not just post the source so we can see what is going on and modify it if we need to?
Brandsum Well-Known Member Licensed User Aug 15, 2019 #12 Because I think its easier to include a library rather than adding that class file to a project. Just like b4xlib. I have mentioned the original thread. You can check that to know how it is working. I have posted a few libraries as class file so that someone can modify if its not working as they want. But here I dont think any modifications is required. So I have posted as jar file. Also if you compile a module as library then users dont have to add dependencies along with the library as those will be compiled along with the class file.
Because I think its easier to include a library rather than adding that class file to a project. Just like b4xlib. I have mentioned the original thread. You can check that to know how it is working. I have posted a few libraries as class file so that someone can modify if its not working as they want. But here I dont think any modifications is required. So I have posted as jar file. Also if you compile a module as library then users dont have to add dependencies along with the library as those will be compiled along with the class file.
agraham Expert Licensed User Longtime User Aug 15, 2019 #13 Brandsum said: But here I dont think any modifications is required. Click to expand... Well, we have to disagree here. I see no point in posting a compiled class module instead of the source code. I wanted to play with the cancel() method but I now have to reverse engineer the source code to be able to do so.
Brandsum said: But here I dont think any modifications is required. Click to expand... Well, we have to disagree here. I see no point in posting a compiled class module instead of the source code. I wanted to play with the cancel() method but I now have to reverse engineer the source code to be able to do so.
Brandsum Well-Known Member Licensed User Aug 15, 2019 #14 Ok, then I think it is a good idea to post both files.
agraham Expert Licensed User Longtime User Aug 15, 2019 #15 That IS a good idea - and I have to confess it hadn't occurred to me to suggest that
Brandsum Well-Known Member Licensed User Aug 15, 2019 #16 I've uploaded the class module. Check the first post. Last edited: Aug 17, 2019
FatihCubukcu Member Licensed User Longtime User Aug 18, 2019 #17 What is the usage limit of google speech api
Brandsum Well-Known Member Licensed User Aug 18, 2019 #18 This is not a google cloud speech to text API wrapper. So there is no limit. If you need the cloud speech API wrapper then check this https://www.b4x.com/android/forum/threads/b4x-b4xlib-cloud-text-to-speech.104052/
This is not a google cloud speech to text API wrapper. So there is no limit. If you need the cloud speech API wrapper then check this https://www.b4x.com/android/forum/threads/b4x-b4xlib-cloud-text-to-speech.104052/
S SoportePatrol Member Licensed User Longtime User Aug 25, 2019 #20 Hi, it’s a big library thanks! How can I make listen all the time (without using a timer in sr_Results event)
Hi, it’s a big library thanks! How can I make listen all the time (without using a timer in sr_Results event)