<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Segoe UI";
        panose-1:2 11 5 2 4 2 4 2 2 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>I could use some help to connect the dots here. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I was trying to use a rtl-sdr to pipe a receive signal into the input or receive audio for asterisk instead of using the mic in on the usb audio fob. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Heres what I got so far. I can get a rtl-sdr installed in the Arch Linux by using pacman -s rtl-sdr. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Install reboot and plug in rtl-sdr.  You can run lsusb to see if the computer sees it or run rtl_test. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Now to get the audio piped to audio device in the computer we have to create a loopback right? <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>So <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'>modprobe snd-aloop<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>to get the loopbacks setup but its not the usb audio but on the card1??<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Then if you run this command, it will pipe a FM 12Khz bandwidth centered on 446.160 mhz and pipe it to the loopback device which is the device name of the loopback.<o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'>rtl_fm  -M USB -f 446.160M -A fast -s 12K -p -0 -g 0.0 | aplay -r 12k -t raw -D default:CARD=Loopback -c 1 -f S16_LEaplay -r 12k -t raw -c 1 -f S16_LE<o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'>I added these two items in rc.local so rtl-sdr input and loopbacks are setup before asterisk starts. <o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>After doing some reading. <a href="https://github.com/sm0svx/svxlink/issues/250">https://github.com/sm0svx/svxlink/issues/250</a> <----took some notes from here. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I added the input and output device name in the alsa.conf<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white'>In asterisk/alsa.conf define the audio ports pointing to alsa loopback devices: <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white'>input_device=</span><span style='font-family:Consolas'> default:CARD=Loopback</span><span style='font-size:10.5pt;font-family:"Segoe UI",sans-serif;color:#24292E;background:white'><o:p></o:p></span></p><p class=MsoNormal><span style='font-family:Consolas'>output_device=default:CARD=Device<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='text-autospace:none'>in modules.conf I enabled <span style='font-family:Consolas'>chan_alsa.so and after reboot with chan_alsa.so loaded I get no audio at all. My radio keys up at bootup but I get no initial greeting, no audio is coming through. Now I wasn’t expecting this to work of the top, I still need to figure out how the node is going to get cos from the rtl-sdr, I could try to use ctcss but can anyone help me connect the dots on this with what I have so far. <o:p></o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'><o:p> </o:p></span></p><p class=MsoNormal style='text-autospace:none'><span style='font-family:Consolas'> <o:p></o:p></span></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Joe<o:p></o:p></p><p class=MsoNormal>Kd2nfc<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>