{"id":25463998,"url":"https://github.com/rxlabz/speech_recognition","last_synced_at":"2025-11-03T23:30:41.810Z","repository":{"id":48080758,"uuid":"94034244","full_name":"rxlabz/speech_recognition","owner":"rxlabz","description":"A Flutter plugin to use speech recognition on iOS \u0026 Android (Swift/Java)","archived":true,"fork":false,"pushed_at":"2022-10-15T10:14:13.000Z","size":10760,"stargazers_count":336,"open_issues_count":77,"forks_count":197,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-02-13T00:00:40.722Z","etag":null,"topics":["android","flutter","ios","javascript","plugin","speech-recognition","swift"],"latest_commit_sha":null,"homepage":"https://pub.dartlang.org/packages/speech_recognition","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rxlabz.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-06-11T21:56:34.000Z","updated_at":"2024-09-23T06:28:33.000Z","dependencies_parsed_at":"2022-08-12T18:10:43.988Z","dependency_job_id":null,"html_url":"https://github.com/rxlabz/speech_recognition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fspeech_recognition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fspeech_recognition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fspeech_recognition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rxlabz%2Fspeech_recognition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rxlabz","download_url":"https://codeload.github.com/rxlabz/speech_recognition/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239422724,"owners_count":19636031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","flutter","ios","javascript","plugin","speech-recognition","swift"],"created_at":"2025-02-18T06:30:41.982Z","updated_at":"2025-02-18T06:32:48.822Z","avatar_url":"https://github.com/rxlabz.png","language":"Dart","readme":"# :warning: Deprecated\n\n___\n# speech_recognition\n\nA flutter plugin to use the speech recognition iOS10+ / Android 4.1+\n\n- [Basic Example](https://github.com/rxlabz/speech_recognition/tree/master/example)\n- [Sytody, speech to todo app](https://github.com/rxlabz/sytody)\n\n![screenshot](speech_reco_shots.png)\n\n## [Installation](https://pub.dartlang.org/packages/speech_recognition#pub-pkg-tab-installing)\n\n1. Depend on it\nAdd this to your package's pubspec.yaml file:\n\n```yaml\ndependencies:\n  speech_recognition: \"^0.3.0\"\n```\n\n2. Install it\nYou can install packages from the command line:\n\n```\n$ flutter packages get\n```\n\n3. Import it\nNow in your Dart code, you can use:\n\n```dart\nimport 'package:speech_recognition/speech_recognition.dart';\n```\n\n## Usage\n\n```dart\n//..\n_speech = SpeechRecognition();\n\n// The flutter app not only call methods on the host platform,\n// it also needs to receive method calls from host.\n_speech.setAvailabilityHandler((bool result) \n  =\u003e setState(() =\u003e _speechRecognitionAvailable = result));\n\n// handle device current locale detection\n_speech.setCurrentLocaleHandler((String locale) =\u003e\n setState(() =\u003e _currentLocale = locale));\n\n_speech.setRecognitionStartedHandler(() \n  =\u003e setState(() =\u003e _isListening = true));\n\n// this handler will be called during recognition. \n// the iOS API sends intermediate results,\n// On my Android device, only the final transcription is received\n_speech.setRecognitionResultHandler((String text) \n  =\u003e setState(() =\u003e transcription = text));\n\n_speech.setRecognitionCompleteHandler(() \n  =\u003e setState(() =\u003e _isListening = false));\n\n// 1st launch : speech recognition permission / initialization\n_speech\n    .activate()\n    .then((res) =\u003e setState(() =\u003e _speechRecognitionAvailable = res));\n//..\n\nspeech.listen(locale:_currentLocale).then((result)=\u003e print('result : $result'));\n\n// ...\n\nspeech.cancel();\n\n// ||\n\nspeech.stop();\n\n```\n\n### Recognition\n\n- iOS : [Speech API](https://developer.apple.com/reference/speech)\n- Android : [SpeechRecognizer](https://developer.android.com/reference/android/speech/SpeechRecognizer.html)\n\n## Permissions\n\n### iOS\n\n#### :warning: iOS : Swift 4.2 project\n\ninfos.plist, add :\n- Privacy - Microphone Usage Description\n- Privacy - Speech Recognition Usage Description\n\n```xml\n\u003ckey\u003eNSMicrophoneUsageDescription\u003c/key\u003e\n\u003cstring\u003eThis application needs to access your microphone\u003c/string\u003e\n\u003ckey\u003eNSSpeechRecognitionUsageDescription\u003c/key\u003e\n\u003cstring\u003eThis application needs the speech recognition permission\u003c/string\u003e\n```\n\n### Android\n\n```xml\n\u003cuses-permission android:name=\"android.permission.RECORD_AUDIO\" /\u003e\n```\n\n## Limitation\n\nOn iOS, by default the plugin is configured for French, English, Russian, Spanish, Italian.\nOn Android, without additional installations, it will probably works only with the default device locale. \n\n## Troubleshooting\n\nIf you get a MissingPluginException, try to `flutter build apk` on Android, or `flutter build ios`\n\n## Getting Started\n\nFor help getting started with Flutter, view our online\n[documentation](http://flutter.io/).\n\nFor help on editing plugin code, view the [documentation](https://flutter.io/platform-plugins/#edit-code).\n","funding_links":[],"categories":["组件","Uncategorized","Media [🔝](#readme)","Components"],"sub_categories":["媒体","Uncategorized","Media"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxlabz%2Fspeech_recognition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frxlabz%2Fspeech_recognition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frxlabz%2Fspeech_recognition/lists"}