पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv1.0.6

background_stt

एक फ्लटर प्लगइन जो सदैव पृष्ठभूमि मोड में काम करता है, बोली से टेक्स्ट और टेक्स्ट से बोली सेवा के लिए।

AndroidiOS
30-दिन डाउनलोड
95
लाइक
40
Pub अंक
140

पैकेज इंस्टॉल करें

flutter pub add background_stt

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर प्लगइन जो एंड्रॉइड और आईओएस पर पृष्ठभूमि में निरंतर बोल-से-टेक्स्ट (STT) और टेक्स्ट-से-बोल (TTS) कार्यक्षमता सक्षम बनाता है। वॉइस असिस्टेंट के लिए डिज़ाइन किया गया, यह ऐप निष्क्रिय होने पर भी वास्तविक समय में ट्रांस्क्रिप्शन और ऑडियो आउटपुट की अनुमति देता है। प्लगइन सेवाओं को निरंतर चलाता है, जिससे यह निरंतर सुनने या प्रतिक्रिया की आवश्यकता वाले हैंड्स-फ्री एप्लिकेशन के लिए आदर्श है। यह फ्लटर प्रोजेक्ट्स के साथ बिना किसी दिक्कत के एकीकृत होता है और नेटिव कोड के माध्यम से दोनों प्लेटफॉर्म के विशिष्ट कार्यान्वयन को समर्थन देता है।

उपयोग

  • वॉइस कंट्रोल ऐप्स
  • हमेशा-ऑन सहायक विशेषताएं
  • हाथ से मुक्त डेटा एंट्री
  • नेविगेशन के दौरान रीयल-टाइम ट्रांसक्रिप्शन
  • बैकग्राउंड ऑडियो फीडबैक

मुख्य विशेषताएँ

  • निरंतर बैकग्राउंड संचालन
  • क्रॉस-प्लेटफ़ॉर्म समर्थन (Android और iOS)
  • एम्बेडेड एसटीटी और टीटीएस सेवाएं
  • आवश्यक उपयोगकर्ता इंटरैक्शन कम
  • नेटिव सेवा एकीकरण

इनके लिए उपयुक्त

  • वॉइस असिस्टेंट बनाने वाले डेवलपर्स
  • सतत वॉइस इनपुट की आवश्यकता वाले ऐप्स
  • वॉइस कमांड वाले एक्सेसिबिलिटी टूल्स
  • वॉइस इनपुट वाले उत्पादकता ऐप्स
  • स्मार्ट होम कंट्रोल इंटरफेस

विचार योग्य बातें

  • पृष्ठभूमि प्रक्रिया के कारण बैटरी का अधिक उपयोग
  • दोनों प्लेटफॉर्म पर सही अनुमतियां आवश्यक हैं
  • सभी डिवाइस निर्माताओं पर सुसंगत रूप से काम नहीं कर सकता है
  • सिस्टम-स्तरीय ऑडियो रूटिंग पर सीमित नियंत्रण
  • हमेशा सुनने वाली सुविधाओं के साथ संभावित गोपनीयता के मुद्दे

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

background_stt

Speech-to-Text, Text-to-speech, Interactive Voice commands
[Android Support Only]

pub package

An flutter plugin that runs Speech-to-Text continously in background. This plugin operates in 2 modes:

1. STT Mode

Voice commands will be recognized in background and sent to Flutter app.

2. Confirmation Mode

Voice commands will be recognized and if confirmation was requested for the command, confirmation flow will begin. Once user has provided with "Positive" or "Negative" reply, confirmation mode will end delivering voice input results to flutter app.

Speech results will be delivered in real-time to the flutter app.

Demo

Install

In your pubspec.yaml

dependencies:
  background_stt: [LATEST_VERSION]
import 'package:background_stt/background_stt.dart';

How to use it?

Start Speech-to-Text Service

Note: Service will keep on running once it is started and can only be stopped by calling stop service method.

 var _service = BackgroundStt();

 _service.startSpeechListenService;
    _service.getSpeechResults().onData((data) {
      print("getSpeechResults: ${data.result} , ${data.isPartial}");
    });
Setup Intent for Simple Confirmation

This can be useful for simple decisions.

    _service.getSpeechResults().onData((data) {
          if (command == "start") {
          _service.confirmIntent(
              confirmationText: "Do you want to start?",
              positiveCommand: "yes",
              negativeCommand: "no");
        }
    });

  _service.getConfirmationResults().onData((data) {
      print(
          "getConfirmationResults: Confirmation Text: ${data.confirmationIntent} , "
          "User Replied: ${data.confirmedResult} , "
          "Is Confirmation Success?: ${data.isSuccess}");
    });
Setup Intent for Voice-Input Confirmation

This can be useful for taking voice input from user and then confirming that input from user by voice command verification.

    _service.getSpeechResults().onData((data) {
          if (command == "address") {
            _service.confirmIntent(
                confirmationText: "What is the address?",
                positiveCommand: "yes",
                negativeCommand: "no",
                voiceInputMessage: "Is the address correct?",
                voiceInput: true);
          }
    });

  _service.getConfirmationResults().onData((data) {
      print(
          "getConfirmationResults: Confirmation Text: ${data.confirmationIntent} , "
          "User Replied: ${data.confirmedResult} , "
          "Voice Input Message: ${data.voiceInput} , "
          "Is Confirmation Success?: ${data.isSuccess}");
    });
Cancel Confirmation in progress

  await _service.cancelConfirmation;
Stop Speech-to-Text Service

  _service.stopSpeechListenService;
Pause Speech-to-Text Listener

  await _service.pauseListening();
Resume Speech-to-Text Listener

  await _service.resumeListening();
Speak Text and Interupt Listener

If you want to queue voice messages, send queue value 'true':

  await _service.speak("Hello",true)

To interupt and speak current playing message, send queue value 'false':

  await _service.speak("Hello",false)

Set speaker pitch and speech rate:

  _service.setSpeaker(0.2, 0.5)

Author

background_stt plugin is developed by Umair Adil. You can email me at <m.umair.adil@gmail.com> for any queries.

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।