azure_speech_recognition_nic 0.0.4
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-Regionfrom 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);
}