UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Cool thing to do with a ubports device - remote sound player

    Scheduled Pinned Locked Moved General
    1 Posts 1 Posters 48 Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • A Offline
        amazones
        last edited by

        Say I have a computer and speakers that are on the other side of the room, can't connect to them through aux as I don't have a cable this long. No problem! As long as both the computer and phone are connected to the same local network, you can connect your phone to the aux of speakers and send audio from your 'puter:

        Run this command on your phone:

        pactl load-module module-native-protocol-tcp auth-ip-acl='127.0.0.1;192.168.10.0/24' #replace with your local range
        

        It'll open pulseaudio on port 4713 of your phone. Now on your computer:

        pactl load-module module-tunnel-sink server=<PHONE_IP> sink=1 
        

        Your phone will now be listed as one of the sinks on the computer. You can easily use pavucontrol to redirect sound from specified programs to your phone. You can use the phone speakers themselves or connect to speakers via aux. Haven't tested bluetooth yet.

        On my network there unfortunately also was some sound tearing, but for me its bearable. Tried to recreate sink with latency_msec=400 adjust_time=0 parameters and it kinda helped though, I think that one has to play around with these parameters or some other options in pulse, I'm no pulse master unfortunately.

        1 Reply Last reply Reply Quote 3

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post