Displaying 1 result from an estimated 1 matches for "opus_get_voice_ratio_request".
2019 Nov 13
0
about speech/music detector in opus 1.3.1
Hi,
I’m wondering how can I get the speech/music classification result when encoding the audio in opus 1.3.1?
I found in the file opus_encoder.c, there is a opus_encoder_ctl request as OPUS_GET_VOICE_RATIO_REQUEST, so I wrote in my program the below code:
#define OPUS_GET_VOICE_RATIO(x) 11019, __opus_check_int_ptr(x)
int32_t voiceRatio;
opus_encoder_ctl(encoder, OPUS_GET_VOICE_RATIO(&voiceRatio));
LOGI("voice ratio:%d", voiceRatio);
But it always return -1.
And then I found that in the opus...