Author Topic: Mute microphone when TTS  (Read 2347 times)

0 Members and 1 Guest are viewing this topic.

jb5349

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 2
    • View Profile
Mute microphone when TTS
« on: November 16, 2013, 12:48:05 PM »
So I saw the experimental feature of not listening when TTS speaking. It doesn't seem to work so well and was wondering if this could be addressed in version 2?

Some ideas to make it work without using special hardware. This has to be done in the VC code itself.

1. Mute sound input device before TTS event
2. Set sound input level to 0 before TTS event and restore to previous level after speaking stops

I know this would be better than me having to press the mute button on my mic so often.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mute microphone when TTS
« Reply #1 on: November 16, 2013, 01:01:13 PM »
It works.

jb5349

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Mute microphone when TTS
« Reply #2 on: November 16, 2013, 01:46:11 PM »
It actually doesn't work when using it with Mobiola Headset. VC hears itself when it talks and sometimes goes crazy.

I don't like to be tied to my computer and wish to be able to move freely around the house with my phone.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mute microphone when TTS
« Reply #3 on: November 16, 2013, 01:53:14 PM »
It would have been helpful to mention that you were using mobiola headset in the first place.  This is not a feature request, but either a bug report or a request for support.  I will test this function with the headset app, but I suspect that you may not be using it correctly.  Since you have not outlined any of the steps you have taken it is impossible to know.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mute microphone when TTS
« Reply #4 on: November 16, 2013, 02:10:41 PM »
I just tested it with Mobiola Headset and it seems to work correctly.

jb5349

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Mute microphone when TTS
« Reply #5 on: November 16, 2013, 03:19:41 PM »
Sorry I was not more clear. Sometimes when cvs peaks it hears itself and then goes off answering things I didn't ask. But I am using the speakerphone feature and not as a headset. I have to press mute button on Headset app to avoid the issue.

xtermin8r

  • $upporter
  • Sr. Member
  • *****
  • Posts: 366
  • Karma: 9
  • Crunchie
    • View Profile
Re: Mute microphone when TTS
« Reply #6 on: November 16, 2013, 03:44:58 PM »
Sorry I was not more clear. Sometimes when cvs peaks it hears itself and then goes off answering things I didn't ask. But I am using the speakerphone feature and not as a headset. I have to press mute button on Headset app to avoid the issue.

Hi b5349

I also use the mobiola headset app, and yes if the tts voice is too loud moblola headset will pick it up and might cause some craziness in vc.
Have you tried  the mute command followed by a tts.speaksync then the unmute ?
Neural Net Based Artificial Intelligence.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Mute microphone when TTS
« Reply #7 on: November 16, 2013, 04:48:14 PM »
To use this feature, you only need to go to options and under the TTS settings enable the option "Don't listen during TTS.SpeakSync", and then Save and Close.

Now you should not have to worry about *ANY WINDOWS MICROPHONE* (including Mobiola) picking up the TTS voice during TTS.SpeakSync actions.

This does not apply to VoxWav, nor does it apply to actions that use TTS.Speak (without the sync).

TTS.Speak does not wait for the speech to end before continuing, so there is no way to know when to turn the microphone back on.  Trying to enable this feature for TTS.Speak actions would have caused too many problems with overlapping control over the state of listening so please don't ask to have this feature work with TTS.Speak actions.  If you need it for all commands then you can probably use find/replace in a text editor to change it for all your commands.

Note that VoxCommando's main UI thread is essentially locked during TTS.SpeakSync actions.  If the TTS is speaking for a long time you may see "VoxCommando is not responding" but it will go away when the speaking ends.  Anyway it does not matter that VC is locked since the recognizer is turned off and you can't issue commands anyway.

jb5349

  • Jr. Member
  • **
  • Posts: 46
  • Karma: 2
    • View Profile
Re: Mute microphone when TTS
« Reply #8 on: November 16, 2013, 10:50:53 PM »
I guess I was using TTS.Speak instead of synch too much. I will try changing them and see if that helps.

Thanks!