{"id":115,"date":"2023-03-19T08:37:48","date_gmt":"2023-03-19T07:37:48","guid":{"rendered":"http:\/\/10.4.44.99:10084\/?p=115"},"modified":"2023-03-19T08:37:48","modified_gmt":"2023-03-19T07:37:48","slug":"aastra-mitel470-ansagetext-format","status":"publish","type":"post","link":"https:\/\/www.winni.at\/wordpress\/?p=115","title":{"rendered":"Aastra-\/Mitel470 | Ansagetext Format"},"content":{"rendered":"\n<p>Der Ansagetext einer Aastra470 oder Mitel470 Telefonanlage muss in folgenderma\u00dfen formatiert werden:<\/p>\n\n\n\n<p>Format: CCITT A-LAW<\/p>\n\n\n\n<p>8kHz, 8Bit, Mono<\/p>\n\n\n\n<p>Convertiert mit&nbsp;<strong>dBpoweramp Music Converter<\/strong><\/p>\n\n\n\n<p><strong>Alternative (Source:<a href=\"https:\/\/developer.voxtron.com\/?p=163\">https:\/\/developer.voxtron.com\/?p=163<\/a>)<\/strong><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Sound formats<\/h5>\n\n\n\n<p>When using the IVR, you\u2019ll encounter two sound formats: CAL and WAV.<\/p>\n\n\n\n<p>\u2022&nbsp;&nbsp; &nbsp;CAL files can be played by the IVR, but not by Windows<br>\u2022&nbsp;&nbsp; &nbsp;WAV files can be played by Windows, but not by the IVR<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">SOX<\/h5>\n\n\n\n<p>SOX (Sound Exchange) is an open-source tool for converting sound file formats.<br>It can be used to convert .cal files to .wav files and the other way around.<br>Since it is a command-line tool, it can be used from within scripts.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">Installation<\/h5>\n\n\n\n<p>The program can be found here:&nbsp;<a href=\"http:\/\/sourceforge.net\/projects\/sox\/\">http:\/\/sourceforge.net\/projects\/sox\/<\/a><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">CAL Format<\/h5>\n\n\n\n<p>SOX contains built-in support for the CAL format.<br>Since it calls this format \u201cLA\u201d (reverse ALaw) it won\u2019t recognize the \u201c.cal\u201d extension.<br>Therefore we have to specify the file format ourselves using the \u201c<strong>\u2013t la<\/strong>\u201d argument.<br>Since CAL files don\u2019t contain a header, we also have to specify the following parameters:<br>\u2022&nbsp;&nbsp; &nbsp;\u201c<strong>-r 8000<\/strong>\u201d for a sample rate of 8Khz<br>\u2022&nbsp;&nbsp; &nbsp;\u201c<strong>-c 1<\/strong>\u201d to set the number of channels to 1 (i.e. mono).<\/p>\n\n\n\n<h5 class=\"wp-block-heading\">CAL to WAV<\/h5>\n\n\n\n<p><strong>sox \u2013t la \u2013r 8000 \u2013c 1&nbsp;<\/strong><em>inputfile.cal outputfile.wav<\/em><\/p>\n\n\n\n<h5 class=\"wp-block-heading\">WAV to CAL<\/h5>\n\n\n\n<p><strong>sox&nbsp;<\/strong><em>inputfile.wav<\/em><strong>&nbsp;\u2013t la \u2013r 8000 \u2013c 1&nbsp;<\/strong><em>outputfile.cal<\/em><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Playing CAL files<\/h4>\n\n\n\n<p>Using the \u201c-d\u201d command, you can play a .cal file:<\/p>\n\n\n\n<p><strong>sox -t la<\/strong>&nbsp;<strong>\u2013r 8000 \u2013c 1<\/strong>&nbsp;<em>test<\/em>.cal&nbsp;<strong>-d<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Converting to uncompressed PCM WAV files<\/h4>\n\n\n\n<p>If you need a .wav file which uses uncompressed PCM encoding, you can use the following command:<\/p>\n\n\n\n<p><strong>sox<\/strong>&nbsp;<strong>\u2013t la \u2013r 8000 \u2013c 1<\/strong>&nbsp;<em>inputfile.cal&nbsp;<\/em><strong>-t wav -e signed-integer -r 8000 -c 1<\/strong>&nbsp;<em>outputfile.wav<\/em><\/p>\n\n\n\n<p>These .wav files are larger than the regular .wav files, but are required by some tools.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Combining single-channel CAL files into stereo WAV<\/h4>\n\n\n\n<p>It is possible to combine two single-channel recordings into a stereo output file:<\/p>\n\n\n\n<p><strong>sox -t la -c 1 -r 8000<\/strong>&nbsp;&nbsp;<em>customer.cal<\/em>&nbsp;<strong>-t la -c 1 -r 8000<\/strong>&nbsp;<em>agent.cal<\/em>&nbsp;<strong>\u2013channels 2 \u2013combine merge<\/strong>&nbsp;<em>output.wav<\/em>&nbsp;<strong>mixer 1,0,0,1<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">More Information<\/h4>\n\n\n\n<p>For more sox options, please read the documentation at&nbsp;<a href=\"http:\/\/sox.sourceforge.net\/\">http:\/\/sox.sourceforge.net<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Der Ansagetext einer Aastra470 oder Mitel470 Telefonanlage muss in folgenderma\u00dfen formatiert werden: Format: CCITT A-LAW 8kHz, 8Bit, Mono Convertiert mit&nbsp;dBpoweramp<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"colormag_page_container_layout":"default_layout","colormag_page_sidebar_layout":"default_layout","footnotes":""},"categories":[3],"tags":[5,6,12,147,194],"class_list":["post-115","post","type-post","status-publish","format-standard","hentry","category-kb","tag-aastra","tag-aastra-convert","tag-ansagetexte","tag-mitel","tag-voice-messages"],"_links":{"self":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/115","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=115"}],"version-history":[{"count":0,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/115\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winni.at\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}