Community
cancel
Showing results for 
Search instead for 
Did you mean: 
jarol1
Beginner
50 Views

detect GSMFR frame type in decoder

Hello

How can I detect frame type in GSMFR decoder?
In readme.txt there is:

Frame type (value): Speech VAD OFF (-1), SID (0), Speech VAD ON (1), Speech in Hangover (2)

But since all frames have the same length, I cant detect type based on length. Is there some header produced by GSM encoder that also stores type of frame? I also use other codecs, and so far I ignored SID frames and generated my own comfort noise. But I think there should be a better way to do it.
0 Kudos
1 Reply
Vyacheslav_Baranniko
New Contributor II
50 Views

Quoting - jarol1
Hello

How can I detect frame type in GSMFR decoder?
In readme.txt there is:

Frame type (value): Speech VAD OFF (-1), SID (0), Speech VAD ON (1), Speech in Hangover (2)

But since all frames have the same length, I cant detect type based on length. Is there some header produced by GSM encoder that also stores type of frame? I also use other codecs, and so far I ignored SID frames and generated my own comfort noise. But I think there should be a better way to do it.

Hi there

The USC manual (see ./doc/uscmanual.pdf) in the clause Codec APIfor Encode function says that "... out->frametype is set to a codec-dependent bitstream frame type".
Encode(USC_Handle handle, USC_PCMStream *in, USC_Bitstream *out)

Best regards, Vyacheslav