[How to] Sound from computer to airtime server / Ubuntu
  • Vote Up1Vote Down LutinLutin
    Posts: 26Member
    Hello,

    this is a solution to send sound from your computer to airtime server with Ubuntu (>=12.04)
    The interest is to send music from Spotify or another music player easily.

    First, listen music now. It's better to work with music ;)

    We will use three softwares :
    - darkice (in a terminal)
    - pavucontrol
    - your music player


    First, install darkice and pavucontrol, in appcenter or in terminal :
    sudo apt-get install darkice pavucontrol

    Second, create the file darkice.cfg in /etc :
    sudo gedit /etc/darkice.cfg

    And copy/paste the text from the attached file to darkice.cfg.

    Modify that you want and like in "System/streams/Input Stream Settings".

    Open a terminal and launch :
    sudo darkice

    Open pavucontrol and in recorder's tab, change the source in "monitor audio...".

    Now, the sound of your computer is send to your airtime's server.

    If you have some questions, say me, i will modify steps if it's not understandable.

    And sorry for my bad english.


    moved to Airtime Hacks
    Post edited by Albert FR at 2013-09-29 10:31:43
  • 10 Comments sorted by
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    Hi Lutin, thanks for the post! Your English is fine :-)

    I like how you're using pulseaudio to route audio from applications which do not have Icecast client support. Another way to do this for ALSA applications, using JACK, is here: http://jackaudio.org/routing_alsa
    From there you can use any Icecast client which supports JACK.

    Cheers!

    Daniel
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    darksnow could be an alternative at pavucontrol


  • Vote Up0Vote Down LutinLutin
    Posts: 26Member
    @Daniel James : in fact, with my proposition you can use a "standard Ubuntu".

    @Albert FR : it doesn't work for me. But all alternative is good ! :)
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    doesn't work ???

    darksnow is a gui for darkice
    normally downloaded when you select it (darksnow)
  • Vote Up0Vote Down LutinLutin
    Posts: 26Member
    Yep, but no.
    I suppose that Darksnow changes the configuration in user's home but the config file, for me, is in /etc.

    In fact, i haven't the capacity to explain why and, for this moment, this solution is good for me.
    That's why your alternative can be good for others. :)
  • Vote Up0Vote Down Albert FRAlbert FR
    Posts: 1,978Member, Airtime Moderator
    I've forgot BUTT too ;-)

    http://butt.sourceforge.net/
  • Unfortunately butt was last updated 5 years ago. No support for aac also.
    But the great minus is that only one stream can be connected at a time (although you may start multiple instances). 

    It would be great if somebody will continue eddcast/oddcast.

    Alex
  • Vote Up0Vote Down hoerichhoerich
    Posts: 627Member, Airtime Moderator
    there is a follow-up for edcast. It's called riocast or edcst-reborn.
    It's good, but the same limitation as edcast.
    It can only record from the source set as default in windows.
    This is not possible for me.
    http://code.google.com/p/edcast-reborn/
    Official Airtime Forum Manager
    --------------------------
    Most of the time an issue is located between keyboard and chair.
  • ICDJ for linux is wonderful ,it even have Icecast integration and Auxillary using Jack
    Anyone reading this a find it funny about my grammar , I make no apology ,Go get a translator.
    "The Problem with education today is that it takes a university degree to switch on a light bulb"
    "You learn from your mistakes but wise people learn from others mistakes avoid Making mistakes there is not sufficient rooms to make them"
    "Innuendo","If's","Assumptions" and "Fear" are for politician.Who,What,where,When and How are for those seeking knowledge and care about Humanity.
    "I might be in Mud but that does not Make me a Wild Hog(pig)"
    “Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius — and a lot of courage to move in the opposite direction.”
    "The only thing that remains constant is change itself"
    May the force be with you,until our path or destiny bring us in tandem.
  • Vote Up0Vote Down Daniel JamesDaniel James
    Posts: 844Member, Sourcefabric Team
    I agree, great application for live assist on GNU/Linux, works well with Airtime. http://idjc.sourceforge.net/