Author Topic: Hungarian recognition and TTS using Google  (Read 11503 times)

0 Members and 2 Guests are viewing this topic.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hungarian recognition and TTS using Google
« Reply #30 on: May 25, 2020, 09:44:01 AM »
So are you saying that Google assistant on your phone does not support Hungarian?

In that case there is no way you are going to be able to use your phone.

krysn95

  • Contributor
  • ***
  • Posts: 81
  • Karma: 1
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #31 on: May 25, 2020, 04:16:21 PM »
Guys..maybe it is totally bad idea, but according to the wiki:
(https://voxcommando.com/mediawiki/index.php?title=Google_Speech)

"Web page must be running on the same computer as VoxCommando, but there is a workaround (info to come, or ask on the forum)."

So, what if I launch the Google Speech page from my phone, but instead of the VC pc link
(http://127.0.0.1:8080/html/ggspeech/index.html?wsPort=8074)

on the network
(http://192.168.88.xxx:8080/html/ggspeech/index.html?wsPort=8074)

In this way could be possible to use 2 or more Google Speech web page in the same time from different devices, on the same port, to send the recognized speech into the same VC?
 :)

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hungarian recognition and TTS using Google
« Reply #32 on: May 25, 2020, 05:07:35 PM »
It's OK to connect to VC from multiple browsers running on different computers but I don't think it will work on an Android device.  It only works if you are running chrome on a PC.

You can do a test here: https://www.google.com/intl/en/chrome/demos/speech.html

I don't think it will work from an Android device.

krysn95

  • Contributor
  • ***
  • Posts: 81
  • Karma: 1
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #33 on: May 25, 2020, 05:15:39 PM »
Wow it is work perfectly on my Android the phone, thankis for the test link!
:)))

Please tell that it is possible to use 2 or more Google Speech web page in the same time...

« Last Edit: May 25, 2020, 05:18:18 PM by krysn95 »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hungarian recognition and TTS using Google
« Reply #34 on: May 25, 2020, 05:17:01 PM »
I just tested and it does seem to work from my phone.  I'm not sure if the security work-around will work on a mobile device though.  I need to check.

One thing to keep in mind is that you will be constantly uploading audio from all your devices to the cloud.  It's a lot of bandwidth.  Unlike Google Home or Alexa which uses a wake word, this method is streaming everything constantly.  Not ideal really, and I'm not sure what would happen if you tried to use this all the time on multiple devices.

krysn95

  • Contributor
  • ***
  • Posts: 81
  • Karma: 1
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #35 on: May 25, 2020, 05:24:21 PM »
Sure but it seems the perfect way for me..exactly what Im lookig for..
(one windos PC center with VC and 3-4 android device with constantly listening mic)

So..thanks for your help..please just let me know, how can I step closer to this solution ^-^

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hungarian recognition and TTS using Google
« Reply #36 on: May 25, 2020, 05:43:36 PM »
It seems to work.

On any device running Chrome you just need to open the web page that is hosting the Google Speech UI on VoxCommando.

Normally we use this address: http://127.0.0.1:9091/html/ggspeech/index.html?wsPort=33222

Replace the 127.0.0.1 with the IP address of the computer running VoxCommando and open it on your phone in Chrome.  You should see the web page but the microphone won't work yet. The local IP will probably be something similar to 192.168.0.102

You need to change settings on any devices that you want to connect to this page, to tell it to allow using Google Speech even though it is not a secure connection (http instead of https).  I think this is to protect you from malicious site on the internet trying to listen to your microphone.

-Open Chrome and visit: chrome://flags/#unsafely-treat-insecure-origin-as-secure
-Enable it. And click relaunch.
-In the box where you specify origins to treat as secure enter your Address and port.  It will look like this: http://192.168.0.102:9091
-Click relaunch.
-Double check that the insecure origins feature is enabled and that the address is sill in the box.

Now you can try that URL again and it should work.
example: http://192.168.0.102:9091/html/ggspeech/index.html?wsPort=33222

On my phone I noticed that it was constantly restarting and beeping.  It may depend on the ambient noise and the sensitivity of your microphone.

krysn95

  • Contributor
  • ***
  • Posts: 81
  • Karma: 1
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #37 on: May 25, 2020, 06:21:33 PM »
It worked! But yes my phone mic listenning (and beeping) also restarting constantly..any idea?
« Last Edit: May 25, 2020, 06:46:05 PM by krysn95 »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hungarian recognition and TTS using Google
« Reply #38 on: May 25, 2020, 06:47:02 PM »
Turn the volume on your phone to 0.

I don't think there is any way to stop the beeping.

Restarting constantly is how it works.  It is the only way to force it to be always listening, it is something that it was not designed to do.

krysn95

  • Contributor
  • ***
  • Posts: 81
  • Karma: 1
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #39 on: May 25, 2020, 07:13:45 PM »
Ok...Im really gratefull for your creativity! It is amazing..Im gona test the parts but hipefully it will be okay...

Theoretically how may device can connect in this way? Is it possible to use 3 or 4 android phone with this trick?

Oh and one more thing...any idea how can the VC identify the source of the command?
(I mean is it possible to identify device 1; device2....inside the history it seems the same)
« Last Edit: May 25, 2020, 07:17:35 PM by krysn95 »

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hungarian recognition and TTS using Google
« Reply #40 on: May 26, 2020, 08:36:02 AM »
I'm not aware of any theoretical limit to the number of clients but the more complicated your setup the more likely it is that things will go wrong.

There is currently no way to know which client a command is coming from. It might be possible for me to create an action to get the IP address of the last client to send a command string to the TCP plugin.

krysn95

  • Contributor
  • ***
  • Posts: 81
  • Karma: 1
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #41 on: May 26, 2020, 03:47:32 PM »
aaaand guys, does anybody has any epxerience with omnidirection microphones in "chain"?

Im thinking actually something like this

https://www.amazon.com/CM-1000USB-Conference-Microphone-ECS-3-5CM-Microphones/dp/B01MXY82LD#HLCXComparisonWidget_feature_div

Maybe it could be better solution for the hands free, full apartman available VC than the smartphone solution.

(Unfortunatelly it seems the Chrome denie the mic after 10-15min)

Kalle

  • $upporter
  • Hero Member
  • *****
  • Posts: 2319
  • Karma: 47
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #42 on: May 26, 2020, 05:28:15 PM »
The price is really good, because only one cm1000 cost normally 120 EUR in Germany. I have testet so manny microphones, but not this.
The biggest problem for such a mic is a lot of noise in a room (music, talking people).
***********  get excited and make things  **********

krysn95

  • Contributor
  • ***
  • Posts: 81
  • Karma: 1
    • View Profile
Re: Hungarian recognition and TTS using Google
« Reply #43 on: May 27, 2020, 04:11:57 AM »
And how do you see, is it possible to solve to continuesly listening the Google speech recog throug the Android Device Chrome after the first 10-15 min?

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7715
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Hungarian recognition and TTS using Google
« Reply #44 on: May 27, 2020, 09:00:41 AM »
Obviously Google does not want this and it is perfectly understandable why.

Probably the only way to solve the problem is to not do it. Instead if you can find a way to turn the microphone on only when you need it.

VoxCommando can tell the Google speech webpage to turn the microphone on and off. The problem is to know when VoxCommando should do this. One option might be a motion sensor.

Realistically, you probably need to forget about whole-house, hands-free solutions until devices like Google home or Echo support your language. Even if you find a way to make it work, it will probably not be reliable enough to really be useful and pleasant to use.

If you are willing to wear a wireless microphone then there is probably a way to do it using VoxCommando only.