2016-08-08 47 views
0

我正在使用spandsp進行音頻檢測,我正在尋找一些關於配置SIT,REORDER和BUSY音色的指南,幫助巴西的spandsp.conf.xml。在HZFreeswitch spandsp.conf.xml音調設置

頻率(FREQ1/FREQ2)params爲可以理解的,並且最小/最大 PARAMS 似乎爲音調的持續時間。我在哪裏可以找到巴西的這些值?

這是美國樣本:

<descriptor name="1"> 
     <tone name="CED_TONE"> 
     <element freq1="2100" freq2="0" min="700" max="0"/> 
     </tone> 
     <tone name="SIT"> 
     <element freq1="950" freq2="0" min="256" max="400"/> 
     <element freq1="1400" freq2="0" min="256" max="400"/> 
     <element freq1="1800" freq2="0" min="256" max="400"/> 
     </tone> 

     <tone name="RING_TONE" description="North America ring"> 
     <element freq1="440" freq2="480" min="1200" max="0"/> 
     </tone> 

     <tone name="REORDER_TONE"> 
     <element freq1="480" freq2="620" min="224" max="316"/> 
     <element freq1="0" freq2="0" min="168" max="352"/> 
     <element freq1="480" freq2="620" min="224" max="316"/> 
     </tone> 
     <tone name="BUSY_TONE"> 
     <element freq1="480" freq2="620" min="464" max="536"/> 
     <element freq1="0" freq2="0" min="464" max="572"/> 
     <element freq1="480" freq2="620" min="464" max="536"/> 
     </tone> 
    </descriptor> 

這裏是巴西的色調根據ITU標準:

http://www.itu.int/pub/T-SP-OB.781-2003

但沒有提及對最小/最大值。 查看是否有人可以爲spandsp.conf.xml提供巴西樣本配置或某些見解。

+1

上面的示例如果對於<! - 北美 - >',我認爲巴西屬於南美洲。所以,如果你可以找到'南美洲'那麼我可能適合巴西 https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/conf/vanilla/autoload_configs/spandsp.conf.xml –

+0

你的鏈接是我已經提到的示例文件,不包含南美洲,僅限於美國,德國,英國。 – spicyramen

回答

0

打開調試選項spandsp.conf.xml 後,我發現了巴西以下設置Asterisk的indications.confspandsp.conf.xml使用<descriptors debug-level="2">

busy = 425/250,0/250 
congestion = 425/250,0/250,425/750,0/250 

調試FreeSWITCH的音使用fs_cli

2016-08-21 09:27:37.502533 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = 1, f2 = -1, duration = 240 
2016-08-21 09:27:37.762531 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = -1, f2 = -1, duration = 256 
2016-08-21 09:27:38.002616 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = 1, f2 = -1, duration = 272 
2016-08-21 09:27:38.262532 [DEBUG] mod_spandsp_dsp.c:705 Tone segment: f1 = -1, f2 = -1, duration = 240 

F1F2是頻率和分鐘最大是音調持續時間中的最小和最大可配置的。對於上面的示例:

<tone name="BUSY_TONE"> 
    <element freq1="425" freq2="0" min="224" max="240"/> 
    <element freq1="0" freq2="0" min="240" max="256"/> 
    <element freq1="425" freq2="0" min="240" max="272"/> 
    <element freq1="0" freq2="0" min="224" max="240"/> 
    </tone>