mybigday / whisper.rn

React Native binding of whisper.cpp.
MIT License
387 stars 23 forks source link

Picking up gibberish. #111

Open sleep9 opened 1 year ago

sleep9 commented 1 year ago

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 commented 3 months ago

Has anybody solved this yet?