Asterisk HD audio playback

User->OPUS->Externalmedia slin16 (16 bit Signed Linear PCM (16kHz) HD audio → ASR providers works fine
TTS providers → pcm_s16le (16 bit Signed Linear PCM (16kHz) HD audio → Externalmedia RTP ulaw → works, but its a non HD

Trying to achieve TTS HD audio playback at least 16kHz

What have I tried so far?

  1. TTS providers → pcm_s16le (16 bit Signed Linear PCM (16kHz) HD audio → Externalmedia RTP with slin16 with payload type 118 → doesn’t work. I see a thread where Dynamic payloads, such as those used by opus, are not currently supported. Only statically defined payloads (such as ulaw, alaw, g722) are supported
  2. TTS providers → pcm_s16le (16 bit Signed Linear PCM (16kHz) HD audio → Externalmedia RTP with g722 → about to try but there is thread where G.722 is more complex than that, and will have lower quality than 16 bit 16kHz signed linear.
    What is the better way to achieve TTS HD audio playback? Any hints’d be highly appreciative

That’s 16MHz, which is seriously into the ultrasonic range!

The IANA payload type seems to be L16, not pcm_s16le, altough I’m not aware that Asterisk understands L16,

Note that dynamic payload types must always have an SDP line giving the corresponding name. I think the sampling rate would have to be given as a paramter.

@david551 my bad, it’s 16kHz. I’ve corrected.

  1. When i set slin16 as External media format, i received Payload type of 118.
  2. pcm_s16le (16000 sample rate) and slin16 both are same, PCM Signed 16-bit Little Endian. So
    I thought sending the RTP with 640 byte length of pcm_s16le with payload type 118 should work, but it didn’t

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.