-
Notifications
You must be signed in to change notification settings - Fork 7
Audio packet
Youx edited this page Sep 13, 2010
·
9 revisions
| Size | Format | Description |
|---|---|---|
| 2 bytes | 16 bit unsigned integer | 0xBEF3 |
| 1 byte | 8 bit unsigned integer | 0 |
| 1 byte | 8 bit unsigned integer | Codec used |
| 4 bytes | 32 bit unsigned integer | private ID |
| 4 bytes | 32 bit unsigned integer | public ID |
| 2 bytes | 16 bit unsigned integer | maybe a total conversation counter or something… keeping it at 0 is OK |
| 2 bytes | 16 bit unsigned integer | counter of conversations |
| 4 bytes | 32 bit unsigned integer | public ID of speaker |
| 2 bytes | 16 bit unsigned integer | counter of packets in this conversation |
| * | * | Audio data |
| Size | Format | Description |
|---|---|---|
| 2 bytes | bit unsigned integer | 0xBEF2 |
| 1 byte | 8 bit unsigned integer | 0 |
| 1 byte | 8 bit unsigned integer | Codec used |
| 4 bytes | 32 bit unsigned integer | private ID |
| 4 bytes | 32 bit unsigned integer | public ID |
| 2 bytes | 16 bit unsigned integer | counter of packets in this conversation |
| 2 bytes | 16 bit unsigned integer | counter of conversations |
| * | * | Audio data |
| Codec ID | Description | Info Data | Encoded data size | Frames per packet |
|---|---|---|---|---|
| 0 | CELP 5.1 | 6 bytes (???) | 153 bytes | 9 |
| 1 | CELP 6.3 | 6 bytes (???) | 51 bytes | 3 |
| 2 | GSM 14.8 | 6 bytes (???) | 165 bytes | 5 |
| 3 | GSM 16.4 | 6 bytes (???) | 132 bytes | 4 |
| 4 | CELP Win 5.2 | ??? | ??? | ??? |
| 5 | Speex 3.4 | 1 byte (val=5) | 27 bytes (43 bits per frame) | 5 |
| 6 | Speex 5.2 | 1 byte (val=5) | 50 bytes (79 bits per frame) | 5 |
| 7 | Speex 7.2 | 1 byte (val=5) | 75 bytes (119 bits per frame) | 5 |
| 8 | Speex 9.3 | 1 byte (val=5) | 100 bytes (160 bits per frame) | 5 |
| 9 | Speex 12.3 | 1 byte (val=5) | 138 bytes (220 bits per frame) | 5 |
| 10 | Speex 16.3 | 1 byte (val=5) | 188 bytes (300 bits per frame) | 5 |
| 11 | Speex 16.9 | 1 byte (val=5) | 228 bytes (364 bits per frame) | 5 |
| 12 | Speex 25.9 | 1 byte (val=5) | 308 bytes (492 bits per frame) | 5 |