Comments (2)
Hi @flutter-painter,
Thanks for the idea, I will take a closer look at this package in the near future and try to implement it instead of the existing speech-to-text conversion tool.
from talkbridge.
Hi @MarekRudzki,
Based on commit f728720 this is now implemented for all but windows, well done !
I tested but encountered permission error on mic
It seems that speech_to_text does not prompt user for permission :
speech_to_text-6.5.0\lib\speech_to_text.dart line 259
/// Returns true if the user has already granted permission to access the
/// microphone, does not prompt the user.
How about adding something like this to prompt ?
`Future<bool> checkPermission() async {
const Permission permissionMic = Permission.microphone;
final status = await permissionMic.status;
if (status != PermissionStatus.granted) {
final newStatus = await permissionMic.request();
return newStatus == PermissionStatus.granted;
} else {
return true;
}
}`
Here is a complete example using FutureBuilder : https://github.com/weebi-com/vocal_message/blob/main/lib/src/b_record_frame_permission.dart
You might want to handle this differently or chose deliberately not to add permission_handler: ^10.0.0
to pubspec yaml
from talkbridge.
Related Issues (4)
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 talkbridge.