Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Android, services-speech-sdk SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND #92598

Open
Tracked by #76797
bestvcboy opened this issue May 31, 2024 · 2 comments
Open
Tracked by #76797

On Android, services-speech-sdk SPXERR_AUDIO_SYS_LIBRARY_NOT_FOUND #92598

bestvcboy opened this issue May 31, 2024 · 2 comments

Comments

@bestvcboy
Copy link

bestvcboy commented May 31, 2024

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;
        }
    }
@MJacred
Copy link
Contributor

MJacred commented Aug 17, 2024

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?

@bestvcboy
Copy link
Author

TT1.zip
godot 4.4 dev1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants