amjad daher
amjad daher

Reputation: 11

Issue with Arabic vocalizations in STT Package in Flutter

I am using the stt package in flutter for speech-to-text conversion, and I've encountered an issue with the Arabic language output.

The responses I receive are devoid of vocalizations (harakat). For example, when I input the word "مرحبا", the output is simply "مرحبا" instead of the fully vocalized version "مَرحباَ".

Is there a way to enable or add vocalizations to the Arabic text output when using the stt package?

void startListening() async {
  bool available = await _speech.initialize();

  if (available) {
    setState(() => isListening = true);
    _speech.listen(
      onResult: (result) {
        setState(() {
          recognizedText = result.recognizedWords;
        });
      },
      localeId: "ar-SA", // Supports better diacritical marks (Tajweed).
    );
  }
}

Upvotes: 1

Views: 29

Answers (0)

Related Questions