<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>hi,</p>
    <p>is it possible to playback ogg/opus files to alaw sip clients?</p>
    <p>exten =>
      _[*+#0-9].,n,Playback(/var/lib/asterisk/sounds/output.ogg,)<br>
    </p>
    <p><br>
    </p>
    <p>[Dec 22 14:05:53] WARNING[49275][C-00000004]: file.c:789
      ast_openstream_full: File /var/lib/asterisk/sounds/output.ogg does
      not exist in any format<br>
      [Dec 22 14:05:53] WARNING[49275][C-00000004]: file.c:1262
      ast_streamfile: Unable to open /var/lib/asterisk/sounds/output.ogg
      (format (alaw)): No such file or directory<br>
      [Dec 22 14:05:53] WARNING[49275][C-00000004]: app_playback.c:497
      playback_exec: Playback failed on PJSIP/endpoint33-00000003 for
      /var/lib/asterisk/sounds/output.ogg,<br>
    </p>
    <p><br>
    </p>
    <p>dev*CLI> module show like ogg<br>
      Module                        
      Description                              Use Count  Status     
      Support Level<br>
      format_ogg_opus.so             OGG/Opus
      audio                           0          Running             
      core<br>
      format_ogg_speex.so            OGG/Speex
      audio                          0          Running         
      extended<br>
    </p>
    <p>dev*CLI> module show like opus<br>
      Module                        
      Description                              Use Count  Status     
      Support Level<br>
      codec_opus.so                  OPUS
      Coder/Decoder                       0          Running         
      extended<br>
      format_ogg_opus.so             OGG/Opus
      audio                           0          Running             
      core<br>
      res_format_attr_opus.so        Opus Format Attribute
      Module             1          Running              core<br>
    </p>
    <p><br>
    </p>
    <p>core show translation<br>
    </p>
    <p>          ulaw  alaw   gsm  g726 g726aal2 adpcm slin8 slin12
      slin16 slin24 slin32 slin44 slin48 slin96 slin192  g729 speex8
      speex16 speex32  ilbc  g722 testlaw  opus<br>
           ulaw     -  9150 15000 15000    15000 15000  9000  17000 
      17000  17000  17000  17000  17000  17000   17000 15000  15000  
      23000   23000 15000 17250   15000 23000<br>
           alaw  9150     - 15000 15000    15000 15000  9000  17000 
      17000  17000  17000  17000  17000  17000   17000 15000  15000  
      23000   23000 15000 17250   15000 23000<br>
    </p>
    <p><br>
    </p>
    <p>audio file created with google TTS</p>
    <p><a class="moz-txt-link-freetext" href="https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize">https://cloud.google.com/text-to-speech/docs/reference/rest/v1/text/synthesize</a></p>
    <table class="constants responsive"
      id="AudioEncoding.ENUM_VALUES-table" style="box-sizing: inherit;
      --devsite-alt-table-cell-background:rgba(241,243,244,0.75);
      --devsite-h2-border:0;
      --devsite-responsive-table-first-column-background:#f1f3f4;
      --devsite-table-cell-background:hsla(0,0%,100%,0.95);
      --devsite-table-heading-background:#e8eaed; border: 0px;
      border-collapse: collapse; border-spacing: 0px; font-style:
      normal; font-variant-ligatures: normal; font-variant-caps: normal;
      font-variant-numeric: ; font-variant-east-asian: ; font-weight:
      400; font-stretch: ; font-size: ; line-height: ; font-family:
      Roboto, "Noto Sans", "Noto Sans JP",
      "Noto Sans KR", "Noto Naskh Arabic",
      "Noto Sans Thai", "Noto Sans Hebrew",
      "Noto Sans Bengali", sans-serif; margin: 0px; width:
      856px; color: rgb(32, 33, 36); letter-spacing: normal; orphans: 2;
      text-align: start; text-transform: none; white-space: normal;
      widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
      background-color: rgb(255, 255, 255); text-decoration-thickness:
      initial; text-decoration-style: initial; text-decoration-color:
      initial;">
      <tbody style="box-sizing: inherit;">
        <tr id="AudioEncoding.ENUM_VALUES.OGG_OPUS" style="box-sizing:
          inherit; background: var(--devsite-table-row-background,0);
          border-top: 0px; border-right: 0px; border-left: 0px;
          border-image: initial; border-bottom:
          var(--devsite-table-row-border,var(--devsite-primary-border));">
          <td style="box-sizing: inherit; border: 0px; margin: 0px;
            text-align: left; padding:
            var(--devsite-table-cell-padding,7px 8px 8px); background:
            var(--devsite-responsive-table-first-column-background);
            vertical-align: top; min-width: 214px;"><code
              class="apitype" dir="ltr" style="box-sizing: inherit;
              font: 500 100%/1 var(--devsite-code-font-family);
              background: 0px center; color: var(--devsite-code-color);
              padding: 0px; direction: ltr !important; text-align: left
              !important; border: 0px; border-radius:
              var(--devsite-inline-code-border-radius,0); word-break:
              break-word; -webkit-font-smoothing: auto; margin-top: 0px;
              margin-bottom: 0px;">OGG_<wbr style="box-sizing: inherit;">OPUS</code></td>
          <td style="box-sizing: inherit; border: 0px; margin: 0px;
            text-align: left; padding:
            var(--devsite-table-cell-padding,7px 8px 8px); background:
            var(--devsite-table-cell-background); vertical-align: top;
            min-width: 214px;">Opus encoded audio wrapped in an ogg
            container. The result will be a file which can be played
            natively on Android, and in browsers (at least Chrome and
            Firefox). The quality of the encoding is considerably higher
            than MP3 while using approximately the same bitrate.</td>
        </tr>
      </tbody>
    </table>
    <p><br>
    </p>
    <p>Marek<br>
    </p>
  </body>
</html>