Skip to content

Self healing audio streams with codecs? #1069

Closed Answered by pschatzmann
joba-1 asked this question in Q&A
Discussion options

You must be logged in to vote

The simplest solution is to send each audio sample as 1 byte. If some bytes get lost, this will be not audible at all and in terms of audio quality it is very hard to distinguish between 8 bit and 16 bits. Here is the related example.. To test this I was increasing the baud rate to a very high value...

For adpcm I have extended by binary container: it stores the audio info, metadata and audio in different record structures/segments. Each encoded frame is stored in a separate segment and a checksum is calculated to determine if the audio is still valid. The records start with a crlf so that the beginning of a segment can be found easily. Here is the related example

Replies: 11 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@joba-1
Comment options

Comment options

You must be logged in to vote
1 reply
@joba-1
Comment options

Comment options

You must be logged in to vote
1 reply
@joba-1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@pschatzmann
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@joba-1
Comment options

Comment options

You must be logged in to vote
4 replies
@joba-1
Comment options

@joba-1
Comment options

@joba-1
Comment options

@joba-1
Comment options

Answer selected by pschatzmann
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants