felixjunghans / google_speech

Flutter google spech
MIT License
68 stars 41 forks source link

[Help] SpeechToTextV2 could not parse file with audioChannelCount = 2 #64

Closed hieultse03355 closed 1 month ago

hieultse03355 commented 2 months ago

Hi, Thank you a lot for bringing to us this solution for google speech-to-text APis Now i got some issue about configuration for my application. I tried to config for parse Audio to Text using pollingLongRunningRecognize with URi. And my configuration looks like this below:

  RecognitionConfigV2 _getConfig() => RecognitionConfigV2(
        model: RecognitionModelV2.long,
        languageCodes: ['de-DE'],
        features: RecognitionFeatures(
            enableSpokenPunctuation: true,
            multiChannelMode: RecognitionFeatures_MultiChannelMode
                .SEPARATE_RECOGNITION_PER_CHANNEL),
        explicitDecodingConfig: ExplicitDecodingConfig(
          audioChannelCount: 2,
        ),
        autoDecodingConfig: AutoDetectDecodingConfig(),
      );

After all that, The response return nothing. So no error threw at all. Can you give me some advice!!! This is my audio and thank you so much!!

Audio