15 | | For the accuracy test, we setup the tone generator to generate digit A from [http://en.wikipedia.org/wiki/DTMF DTMF], with frequencies of 697 and 1209. We then analyzed the frequency using !CoolEdit (now becomes [http://www.adobe.com/special/products/audition/syntrillium.html Adobe Audition]). |
| 15 | For the accuracy test, we setup the tone generator to generate digit A from [http://en.wikipedia.org/wiki/DTMF DTMF], with frequencies of 697 and 1209. We then saved the tone to a WAV file and analyzed the frequency using !CoolEdit (now becomes [http://www.adobe.com/special/products/audition/syntrillium.html Adobe Audition]). |
| 16 | |
| 17 | This is simple to do with [http://www.pjsip.org/pjsua.htm pjsua] really: |
| 18 | {{{ |
| 19 | pjsua --play-tone 697,1209,200,2000 --rec-file tone.wav |
| 20 | }}} |
| 21 | |
| 22 | then issue these commands: |
| 23 | {{{ |
| 24 | cc 1 2 |
| 25 | sleep 5000 |
| 26 | cd 1 2 |
| 27 | q |
| 28 | }}} |
| 29 | |
| 30 | And here is the graphics from the frequency analysis. |
| 31 | |
| 32 | || PJMEDIA_TONEGEN_SINE:[[BR]] [[Image(sine.JPG)]] || PJMEDIA_TONEGEN_FLOATING_POINT:[[BR]] [[Image(float.JPG)]] || |
| 33 | || PJMEDIA_TONEGEN_FIXED_POINT_CORDIC with 10 iterations:[[BR]] [[Image(cordic10.JPG)]] || PJMEDIA_TONEGEN_FIXED_POINT_CORDIC with 8 iterations:[[BR]][[Image(cordic8.JPG)]] || |
| 34 | || PJMEDIA_TONEGEN_FIXED_POINT_CORDIC with 7 iterations:[[BR]] [[Image(cordic7.JPG)]] || PJMEDIA_TONEGEN_FAST_FIXED_POINT: [[BR]][[Image(fast-fixed-point.JPG)]] || |