Comments (6)
Thanks for the very thorough problem report. That's an interesting issue. I wonder if I'm leaking channels.
- Does the application use any other sound input, like WebRTC, sound recorder, etc?
- Do you have any idea how many sound recognition sessions did/could happen during the 10-15 minute period?
- Can you reproduce the problem?
from speech_to_text.
Thank you for your reply.
-
My application includes the record package.
-
I will add the logs in my app and check it. I am also asking the user who is getting this error.
-
I have tried my iPhone15 Pro and could not get it to occur.
However, I can confirm that it is occurring on the iPhone15 Pro on Crashlytics.
I don't think it is a device issue.
Here is what I have tried to do
-
The error did not change when AudioSession was regenerated when channelCount was 0, as shown below.
https://github.com/kakobayashi/speech_to_text/blob/v6.4.1/autoPunctuation/speech_to_text/ios/Classes/SwiftSpeechToTextPlugin.swift#L397 -
I have removed the "Not enough available inputs." error throw process so that the details of the error can be checked on the Flutter side, as shown below.
https://github.com/kakobayashi/speech_to_text/blob/v6.4.1/autoPunctuation_v4/speech_to_text/ios/Classes/SwiftSpeechToTextPlugin.swift#L451-L452
I have checked the following logs
SpeechRecognitionError msg: error_listen_failed, permanent: true, detail: Error Domain=Try Code=1 "(null)" UserInfo={exception=required condition is false: IsFormatSampleRateAndChannelCountValid(hwFormat)} 0 48000.0
The audioSession.sampleRate
was confirmed only at 48000.
I have confirmed over 100 cases at 48000, but not occurring at other times.
I tried setting sampleRate
to 48000 as shown below, but this did not fix this error.
await _speechToText.listen(
localeId: localeId,
listenMode: ListenMode.dictation,
onDevice: false,
onResult: onResult,
sampleRate: 48000, // add
);
from speech_to_text.
My first thought, since you're also using the record package in the app, is that the microphone is in use at the time STT is trying to install the tap. I don't know whether in your app it would be possible for the user to not enable or at least not use the record functionality and see if they can still reproduce the issue? If not perhaps you could get them on TestFlight and get them a version that allows for that test?
from speech_to_text.
I can ask the user who is experiencing this error to test the app without the record package for testing.
I will try to distribute the app to this user on TestFlight.
Thank you.
from speech_to_text.
I distributed the app on TestFlight with the Record package removed.
However, that app is getting the same error.
I would like to know if you have any other thoughts.
from speech_to_text.
This error was occurring when the interstitial ads were not disposed properly.
Thank you very much.
from speech_to_text.
Related Issues (20)
- Does it uses device resources for comuputation or some cloud server ? HOT 4
- Android device stops listening in mid-speech - additional context provided HOT 1
- Is there a way to listen for changes to SpeechToText.isListening? HOT 2
- failing recognition on ios simulators when connected via BT headset HOT 1
- google_maps_flutter ^2.7.0 is incompatible with speech_to_text > HOT 1
- How to overcome error_language_not_supported with `onDevice: true` `SpeechListenOptions`? HOT 5
- Workaround when SpeechToTextPlatform.instance.locales() returns duplicates HOT 5
- SpeechToText instance returns null HOT 1
- Remove references to deprecated v1 Android embedding HOT 6
- reset the buffer of Recognized Words HOT 1
- If voice is not recognized, the screen will not be updated.
- just_audio and speech_to_text version conflict HOT 2
- Speech-to-Text Fails on Simulator After Connecting External Audio Interface on macOS M3 Pro
- Recognised Words Appending Issue on iOS HOT 1
- Version 7.0.0 is incompatible with firebase_core HOT 1
- onResult words being reset while still listening HOT 26
- Need help creating unit test with speech_to_text in my widget HOT 1
- listen Time in android HOT 4
- Get the voice just Spoken HOT 1
- A problem occurred configuring project ':speech_to_text'.
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.