Comments (6)
Actually STT still working for your app audio(which it stopped) but it is isolated from device sound(other app's audio).
Unfortunately, it is not a trivial task to get access to the system sound output (which is probably a good thing, from a security standpoint).
The solutions will generally involve setting up a 'fake' audio device that audio can get played through instead of the default output device you've chosen, and you need "Method channel" for that (Not Flutter)
But if you just want to detect "isListening," you can handle audio interruptions separately
from speech_to_text.
Came from Upwork :)
Have you tried this package
https://pub.dev/packages/audio_service
For overriding the default settings for the audio services for iPhone as I have worked with this in past and working fine? My usecase was to record the sound from mic when video is playing. (Recording the voiceover)
from speech_to_text.
If you add a step 6 and bring the STT app back to the foreground does the active listening session still work? Or does it only work once a new listening session is started?
from speech_to_text.
If you add a step 6 and bring the STT app back to the foreground does the active listening session still work? Or does it only work once a new listening session is started?
I think it only works once we kill STT and then start a new listening session, but the problem is that we cannot even restart it because we don't know if the speech STT stopped listening or is still active. Because there are no errors.
However we found a trick with looking at invokeFlutter: soundlevel change
from speech_to_text.
Thanks for the clarification. I'll have a look at detecting that error. Hopefully doable.
from speech_to_text.
@Kaival-Patel my use case is same to yours like I want to use speech to text in iOS while running music but starting speechtotext effect on music and when I try to stop speech to text it also stops the music I am using just_audio ignorer to play the music
@sowens-csd
from speech_to_text.
Related Issues (20)
- iOS often misses the first word after calling `.listen()` for n+1 times HOT 3
- Request to Add Option to Disable Notification Sound on Android HOT 2
- [iOS] Entering page again to initialize, the last statusListener is unable to update widgets. HOT 1
- Arabic diacritics (Harakat) HOT 1
- iOS, onResult is not called HOT 7
- Getting Error 7 after start. HOT 7
- OnDevice doesnโt work if wifi is turned off HOT 1
- how to clear result.recognizedWords HOT 1
- Wan't to Add some extra languages, working in andriod but thworing exception in IOS HOT 1
- ResultListener recognizedWords are bugged? [Android/Web] HOT 7
- Add tests to the examples
- Support Flutter web WASM HOT 1
- Error when user stay in silent dont possible refresh the widgets
- Error when using TTS HOT 1
- onResult called after onDone
- Error 7 not reported
- SpeechRecognitionError: error_permission && error_client HOT 1
- android , if no network, I got error: error_language_not_sopported HOT 1
- Slow when start listening HOT 1
- Error 9 on Android Emulator HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speech_to_text.