-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wireless headsets support #210
Comments
AFAIK wired headsets already work fine because they become the default when plugged in. I've definitely used them on iOS though not on Android. Have you tried it? I I haven't tried Bluetooth. I guess that you did and it doesn't work? Did you try on both Android and iOS? |
Thanks Stephen! Just curious - how did you test wired headset, I mean when it's plugged in your phone is nearby anyway, so how do you know headset's mic (and not the built-in microphone) was used? I tried BT on Android and yeah, it doesn't work. My BT mic doesn't work even on the in-system voice input (e.g. when you use mic on a standard google keyboard voice input). It works (and turns on automatically) only on incoming call (in any app supporting calls). I think this is all by design and that's how it's expected to work. At the same time I'm sure BT mic can be turned on explicitly (using steps from links above). |
There is one thing I'm afraid will not work though... Every time I test my mic at e.g. https://mictests.com/, I can hear "Call ended" at the end of test. So if it's a hardware feature, it might be hard to disable programmatically (if at all possible). |
UPD: I've just tested a wired headset and mic becomes default, I've scratched the mic while recording so I'm 100% sure it works. Tried few more BT - none of them work with this plugin. Also, not all BT say "call ended" at https://mictests.com, so I think it's configurable from the headsets supporting tools\apps. |
Hi everyone, This actually solved the problem for TEXT TO SPEECH and the SPEECH TO TEXT packages. Both now work on my iPhone. Haven't tested it on Android. |
Current state of this is that @sylvainjack's suggested fix is released os Bluetooth should be working on iOS. The Android version needs updates to properly support Bluetooth. |
Android support for bluetooth is now in the repo version. If anyone has a chance to test it that would be welcome. I've tried it on a Samsung with headphones and it seems to be working. |
Thanks, tested it today. |
Thanks for testing it so quickly. Does the volume issue only happen if you are using a Bluetooth device or does it happen even if you have bluetooth turned off completely? |
Only when Bluetooth device is connected and used. |
Thanks, I'll try to reproduce and see what I can do. In general volume issues on Android are painful. |
I think I have a reproduce but for me it is happening every second phrase. So I start a listen, then use |
Exactly! Every second phrase is muted. I've tried SetVolume before each phrase and it didn't help. |
Excellent, glad yours is the same. Okay, I've just committed a potential fix. It resolves the issue for me. I was only stopping the bluetooth headset on an explicit stop or cancel. This version stops it every time speech ends. Let me know if this works for you. |
It works now, thanks! |
This is published as 5.4.0 on pub.dev. Thanks for the help verifying this! |
Hello. It would be nice to have a support for a wireless headsets (currently only default device's microphone is utilized).
At least for Android it should be as simple as adding few lines of code:
https://stackoverflow.com/questions/28086403/android-speech-recognizer-with-bluetooth-microphone
https://stackoverflow.com/questions/8681085/android-voice-recognition-through-bluetooth
I haven't tried them though.
The question is if it's also easy to do the same on iOS.
Thanks.
The text was updated successfully, but these errors were encountered: