Skip to content

Enhance speech recognition in your Flutter apps with our package, enabling auto-pausing when speech stops and easy listening cessation via a button press. Empower users with seamless interaction control while streamlining development. Elevate user experiences with intuitive speech functionality.

License

Notifications You must be signed in to change notification settings

souvik2710/speech_to_text_ultra

Repository files navigation

Author

Souvik Das Link to Profile

Speech To Text Ultra

This Flutter package designed to address the inconvenience of sudden pauses during speech recognition. With manual control over pause and play functionality, users can now dictate paragraphs without interruptions, ensuring a seamless and uninterrupted speech recognition experience. Elevate your Flutter applications with improved speech interaction, empowering users to communicate effortlessly and effectively.

Installation

  1. Add the latest version of package to your pubspec.yaml (and rundart pub get):
dependencies:
  speech_to_text_ultra: ^0.0.1
  1. Import the package and use it in your Flutter App.
import 'package:speech_to_text/speech_to_text.dart';

Example

class SpeechToTextUltraWidgetImplementation extends StatefulWidget {
  const SpeechToTextUltraWidgetImplementation({super.key});

  @override
  State<SpeechToTextUltraWidgetImplementation> createState() => _SpeechToTextUltraWidgetImplementationState();
}

class _SpeechToTextUltraWidgetImplementationState extends State<SpeechToTextUltraWidgetImplementation> {
  bool mIsListening = false;
  String mEntireResponse = '';
  String mLiveResponse = '';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Colors.white,
      appBar: AppBar(
        backgroundColor: Colors.teal,
        centerTitle :true,
        title: const Text('Speech To Text Ultra',style: TextStyle(fontSize: 20,fontWeight: FontWeight.w500),),
      ),
      body: Center(
        child: SingleChildScrollView(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              mIsListening
                  ? Text('$mEntireResponse $mLiveResponse')
                  : Text(mEntireResponse),
              const SizedBox(height: 20),
              SpeechToTextUltra(
                ultraCallback:
                    (String liveText, String finalText, bool isListening) {
                  setState(() {
                    mLiveResponse = liveText;
                    mEntireResponse = finalText;
                    mIsListening = isListening;
                  });
                },
                // toPauseIcon: const Icon(Icons.pause),
                // toStartIcon: const Icon(Icons.mic),
                // pauseIconColor: Colors.black,
                // startIconColor: Colors.black,
              ),
              const SizedBox(
                height: 10,
              ),
            ],
          ),
        ),
      ),
    );
  }
}

Features

  • Seamlessly pause and resume speech recognition manually for uninterrupted dictation.
  • Eliminate sudden pauses during speech input, ensuring smooth and uninterrupted interactions.
  • Empower users to dictate entire paragraphs without interruptions or breaks.
  • Enhance user experience by providing manual control over speech recognition pause/play functionality.
  • Streamline speech input in Flutter applications with intuitive pause and play features.

About

Enhance speech recognition in your Flutter apps with our package, enabling auto-pausing when speech stops and easy listening cessation via a button press. Empower users with seamless interaction control while streamlining development. Elevate user experiences with intuitive speech functionality.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published