Git Product home page Git Product logo

Comments (2)

MarekRudzki avatar MarekRudzki commented on August 25, 2024

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.

flutter-painter avatar flutter-painter commented on August 25, 2024

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 photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.