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

Picking up gibberish. #111

Open
sleep9 opened this issue Sep 2, 2023 · 1 comment
Open

Picking up gibberish. #111

sleep9 opened this issue Sep 2, 2023 · 1 comment

Comments

@sleep9
Copy link

sleep9 commented Sep 2, 2023

AudioQueueStart was returning OSStatus -50.

Adding the following code to prepareRealtime solves the issue

AVAudioSession * session = [AVAudioSession sharedInstance];

    if (!session) printf("ERROR INITIALIZING AUDIO SESSION! \n");
    else{
[session setCategory:AVAudioSessionCategoryPlayAndRecord error:&nsError];
     
        [session setActive:YES error:&nsError];
    }

However now when I run the application I get a constant stream of gibberish detection. Any ideas?
Im not sure if Its hallucinating or the buffer is polluted with data from somewhere else.

@jfpalngipang
Copy link

Has anybody solved this yet?

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

No branches or pull requests

2 participants