Comments (28)
No issues I'm aware of right now. What version of iOS is it and do you know at what point it is crashing? While initializing? Listening? Other?
from speech_to_text.
Tested on Iphone 6 and 8.
It's not always, but when i press the button that triggets listen() method, the app just closes.
I'm developing in AndroidStudio, so i can't check any value on iOS.
from speech_to_text.
The iOS version of those two phones?
Is this with the example app or with your own app? If it is not with the example app could you try it with the example app and see if you still get crashes?
from speech_to_text.
One is iOS13, the other i dont know exactly but is 10+. I have one iPad with iOS9, that the plugin doesn't work, obviously.
from speech_to_text.
iOS13 and iOS12 the devices.
from speech_to_text.
I'm gonna post some code.
Future<void> initSpeechState() async {
bool hasSpeech = await speech.initialize(onError: errorListener, onStatus: statusListener );
if (!mounted) return;
setState(() {
_hasSpeech = hasSpeech;
});
}
void startListening() {
if (!_isListening){
lastWords = "";
lastError = "";
speech.listen(onResult: resultListener, localeId: locale, onSoundLevelChange: soundLevelListener);
setState(() {
_isListening = true;
});
}
}
from speech_to_text.
RIP formatting.
from speech_to_text.
Can you get a crash log from the iOS device where the error is happening? Settings | Privacy | Analytics & Improvements | Analytics Data. There was an issue that caused an occasional crash when speech availability changed that was resolved in 0.8.0. But you say you're already using that version. Hopefully a crash log will provide some more help.
from speech_to_text.
That's all i got from the TestFlight report. The app just closes and nothing shows up.
Dispositivo - iPhone 8
Versão do iOS - 13.3
Bateria - 70%
Operadora - Carrier
Fuso horário - America/Sao_Paulo
Arquitetura - arm64
Tipo de conexão - Wi-Fi
Espaço livre no disco - 2,07 GB disponíveis de 59,59 GB
Resolução de tela - 375 x 667 pontos
from speech_to_text.
So you don't see a crash log in the on phone analytics? TestFlight doesn't always seem to include the details, not sure why, but they are usually on phone.
from speech_to_text.
Where can I find the log? I don't have an iPhone, and i'm not familiar with iOS.
from speech_to_text.
https://www.macobserver.com/tips/quick-tip/how-to-find-app-crash-reports-iphone-ipad/
from speech_to_text.
Thanks. Gonna check it as soon as possible.
from speech_to_text.
Any updates?
from speech_to_text.
Gonna check today.
from speech_to_text.
Did some runs on the iOS12 device, and got no crashes today.
But the onSoundLevelChange was not giving any results on iOS, only on Android.
I was not able to test on the iOS13 yet.
from speech_to_text.
Yes, the onSoundLevelChange is currently Android only. Been working on an iOS implementation but getting hung up on low level data access in Swift. Hopefully soon. Let me know when you think it's safe to close this issue.
from speech_to_text.
{"app_name":"Runner","app_cohort":"2|date=1581793200000&sf=143503&tid=560c0b5ce136d0ee7ae5217aa2bb726d21194285ad626dd21bc379506e667190&ttype=i","app_version":"1.3.0","timestamp":"2020-02-16 05:40:55.15 -0300","slice_uuid":"8b91e186-acbf-308d-be16-eb4caf55c90a","adam_id":1486661292,"build_version":"78","bundleID":"com.alexianbrothersonline.classroom","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 13.3.1 (17D50)","incident_id":"D0A90CCE-8D5F-41C8-8B1D-E0B6FBCE2567","is_beta":true,"name":"Runner"}
Incident Identifier: D0A90CCE-8D5F-41C8-8B1D-E0B6FBCE2567
Beta Identifier: E58B443D-77D1-44B4-9A15-3B8CD54071C4
Hardware Model: iPhone10,4
Process: Runner [1799]
Path: /private/var/containers/Bundle/Application/8613CE1A-01BD-4DC9-9D44-E7DD9E9C8D19/Runner.app/Runner
Identifier: com.alexianbrothersonline.classroom
Version: 78 (1.3.0)
AppStoreTools: 11C29
AppVariant: 1:iPhone10,4:13
Beta: YES
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.alexianbrothersonline.classroom [845]
Date/Time: 2020-02-16 05:40:54.8347 -0300
Launch Time: 2020-02-16 03:05:55.0338 -0300
OS Version: iPhone OS 13.3.1 (17D50)
Release Type: User
Baseband Version: 3.03.03
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
(0x19a6caa48 0x19a3f1fa4 0x19a5cce88 0x1a71c1b8c 0x1a71c1afc 0x1a725c888 0x1a7202378 0x1a71f48a8 0x1a72708d4 0x1a7257228 0x1026625a4 0x102663498 0x10265e9c8 0x1028791c4 0x102814c6c 0x10286a74c 0x1028249cc 0x102826644 0x19a64903c 0x19a648d78 0x19a648448 0x19a643584 0x19a642adc 0x1a45e3328 0x19e75063c 0x102540dec 0x19a4cc360)
from speech_to_text.
In another iOS device ( iPhone 6 -iOS 12)
{"app_name":"Runner","app_cohort":"2|date=1582045200000&sf=143503&tid=71ea8719ee0cdc1be5ab82750a509ef3312eb186182f29ee8b15574b2315ff8f&ttype=e","app_version":"1.3.0","timestamp":"2020-02-18 14:58:12.04 -0300","slice_uuid":"83a3831f-132c-303b-a28d-7e9df370797c","adam_id":1486661292,"build_version":"79","bundleID":"com.alexianbrothersonline.classroom","share_with_app_devs":false,"is_first_party":false,"bug_type":"109","os_version":"iPhone OS 12.4.5 (16G161)","incident_id":"93B3C3F1-DFF4-4220-9338-672A2562D087","is_beta":true,"name":"Runner"}
Incident Identifier: 93B3C3F1-DFF4-4220-9338-672A2562D087
Beta Identifier: 4447B2DA-1904-44DD-99E0-D74D25064E94
Hardware Model: iPhone7,2
Process: Runner [1426]
Path: /private/var/containers/Bundle/Application/E2A3EF18-FD87-48B9-98F5-66C1A37A793C/Runner.app/Runner
Identifier: com.alexianbrothersonline.classroom
Version: 79 (1.3.0)
AppStoreTools: 11C29
AppVariant: 1:iPhone7,2:12.2
Beta: YES
Code Type: ARM-64 (Native)
Role: Non UI
Parent Process: launchd [1]
Coalition: com.alexianbrothersonline.classroom [655]
Date/Time: 2020-02-18 14:58:11.0906 -0300
Launch Time: 2020-02-18 14:48:34.1915 -0300
OS Version: iPhone OS 12.4.5 (16G161)
Baseband Version: 7.80.04
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Application Specific Information:
abort() called
from speech_to_text.
Thanks for the logs. Is that the complete log? Are these release builds or debug builds? I usually see more stack information, but that could be because I'm usually running debug builds.
I was just re-reading the thread and I'm not clear whether this is the example app or an app that you wrote? I think it's your app? If so could you try the example app on on one of the devices where this is happening?
from speech_to_text.
All release builds.
My app.
As i've said before, i don't have an iOS device to test the example, and I'm developing in AndroidStudio, so i have no clue from iOS behavior. I'm testing on iOS when someone here is with the phone available.
from speech_to_text.
Full log from latest crash.
from speech_to_text.
Thanks the full log is more helpful. I don't see anything that immediately indicates it's related to speech_to_text. In Xcode you could likely load that crash report from TestFlight and see the symbols of the crash stack but other than that I'm not sure how to get more detail out of this. Another approach would be to try the example app on one of the devices that's having a problem and see if you can reproduce it to either rule speech_to_text in or out.
from speech_to_text.
Is there a way to 'dispose' the speech? I've noticed on iOS, as the plugin doesn't stop recording when you stop talking, like on Android, so when i return to the page it is still recording. And maybe it was causing a crash in some point... I've already fixed the recording making the speech to cancel when done, but i believe it needs to be closed properly in dispose() method.
from speech_to_text.
Now that's really interesting. I wonder if that could be causing the crash? You should always either cancel or stop the speech before leaving. Let me know if it continues to crash with this change?
There is no dispose required. Once speech is initialized you can't de-initialize or fully dispose of it. In my applications at least I do the initialization as part of the application start-up.
from speech_to_text.
I see, ok, now i'm forcing it to stop when you leave the page. Gonna make new features on the app, and next update i make more tests to check the behavior.
from speech_to_text.
I see, ok, now i'm forcing it to stop when you leave the page. Gonna make new features on the app, and next update i make more tests to check the behavior.
from speech_to_text.
Thanks, let me know if you see any more crashes.
from speech_to_text.
Related Issues (20)
- issue with pauseFor HOT 1
- Haptic feedback does not work when recording HOT 12
- Issue with Flutter Speech to Text on Android 11 and Earlier HOT 3
- Flutter Web, Android Chrome, speech to text returns spoken words multiple times HOT 22
- not working in web in ios safari standalone mode HOT 2
- Android Permission android.permission.BLUETOOTH_CONNECT should be optional HOT 5
- iOS: When audio is used by another app, STT stops working, but "SpeechRecognitionError" shows no errors and "isListening" shows true HOT 6
- bind to recognition service failed. Android HOT 12
- Youtube Player paused when calling speechToText.listen() HOT 13
- What are the different apps for in example folder? HOT 4
- flutter: Errorrrrr SpeechRecognitionError msg: error_retry, permanent: true HOT 1
- Failed to build iOS app, Swift Compiler Error (Xcode): Cannot call value of non-function type 'AVAudioSession.RecordPermission' HOT 1
- Methods for Adding Amplitude Monitoring for Audio HOT 3
- The method 'SpeechToTextMacOS.listen' has fewer named arguments than those of overridden method 'SpeechToTextPlatform.listen'. HOT 12
- Compilation fails with 6.5.1 because of multiple ListenMode imports HOT 12
- Audio Turned Off After Using STT with Flutter WebRTC HOT 2
- user denied permissions! HOT 1
- iOS: After several minutes of use, error_listen_failed errors may occur HOT 6
- depends on js ^0.7.0 and speech_to_text >=4.0.0-nullsafety depends on js ^0.6.3, HOT 9
- when i use speech_to_text and record package at the sametime the the speech_to_text get stopped ,this issue is only in android and in ios its working fine HOT 9
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.