godot icon indicating copy to clipboard operation
godot copied to clipboard

On Android, services-speech-sdk SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND

Open bestvcboy opened this issue 1 year ago • 1 comments

Tested versions

godot4 dev6 c#

System information

android 11 api 30

Issue description

On Android, I have already granted the recording permission. When I use the cognitive-services-speech-sdk for recording, I encounter the error code: 0x38 (SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND). How can I resolve this issue? Is speechsdk not supported, or is there another reason?

Steps to reproduce

SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND

Minimal reproduction project (MRP)

    public async Task<PronunciationAssessmentResult> FromMic(SpeechConfig speechConfig)
    {
        var pronunciationAssessmentConfig = new PronunciationAssessmentConfig(
referenceText: "I am tom.",
gradingSystem: GradingSystem.HundredMark,
 
granularity: Granularity.Word,
enableMiscue: true);
        pronunciationAssessmentConfig.PhonemeAlphabet = "IPA";
        pronunciationAssessmentConfig.NBestPhonemeCount = 5;

        speechConfig.SetProperty(PropertyId.Speech_SegmentationSilenceTimeoutMs,3000.ToString());  

        using var audioConfig = AudioConfig.FromDefaultMicrophoneInput();
        using (var speechRecognizer = new SpeechRecognizer(
        speechConfig,
audioConfig))
        {
            pronunciationAssessmentConfig.ApplyTo(speechRecognizer);

            var speechRecognitionResult = await speechRecognizer.RecognizeOnceAsync();

            // The pronunciation assessment result as a Speech SDK object
            var pronunciationAssessmentResult =
                PronunciationAssessmentResult.FromResult(speechRecognitionResult);

            // The pronunciation assessment result as a JSON string
            var pronunciationAssessmentResultJson = speechRecognitionResult.Properties.GetProperty(PropertyId.SpeechServiceResponse_JsonResult);
            return pronunciationAssessmentResult;
        }
    }

bestvcboy avatar May 31 '24 17:05 bestvcboy

You used "godot4 dev6 c#"? That's quite old and not even a stable version... Could you try with Godot 4.2.2 or 4.3, please?

MJacred avatar Aug 17 '24 17:08 MJacred

TT1.zip godot 4.4 dev1

bestvcboy avatar Sep 05 '24 14:09 bestvcboy