azure_speech_recognition_nic 0.0.4 copy "azure_speech_recognition_nic: ^0.0.4" to clipboard
azure_speech_recognition_nic: ^0.0.4 copied to clipboard

This package allows you to quickly set up Microsoft Azure Translator and get startedwith translation.

This package allows you to quickly set up Azure Speech Recognition for Flutter.

Features #

  • Implement translation out of the box
  • Suitable for languages like Cantonese that does not work well in Azure Speech Recognition
  • All you need is your Ocp-Apim-Subscription-Key & Ocp-Apim-Subscription-Region from Azure

Getting started #

Head our to this link tocreate your Azure account and setup Speech Recognition resources: https://learn.microsoft.com/zh-tw/azure/ai-services/speech-service/get-started-speech-to-text?tabs=macos&pivots=programming-language-rest

Usage #

Initialize the translator by passing the subscriptKey andsubscriptionRegion

  AzureSpeechRecognition.initialize(dotenv.env['MICROSOFT_AZURE_SUBSCRIPTION_KEY']!, dotenv.env['MICROSOFT_AZURE_SUBSCRIPTION_REGION']!);

  String? text = await AzureSpeechRecognition.instance.recognizeAudio(Uint8List audioBytes);

   if (text != null) {
      print('received text from package..');
      print(text);
    }

Additional information #

0
likes
120
points
47
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This package allows you to quickly set up Microsoft Azure Translator and get startedwith translation.

License

unknown (license)

Dependencies

flutter, http

More

Packages that depend on azure_speech_recognition_nic