Giter Site home page Giter Site logo

Comments (2)

steveunixson avatar steveunixson commented on June 11, 2024

Same here! I've might figured that out.

@staticmethod
    def determine_audio_server():
        pactl_info = subprocess.run(["pactl", "info"], capture_output=True, encoding="utf8")
        stdout = pactl_info.stdout
        print(stdout)
        server_name_prefix = "Server Name: "
        for line in stdout.split("\n"):
            if line.startswith(server_name_prefix):
                audio_server = line[len(server_name_prefix):]
                if len(audio_server) == 0:
                    return None
                return audio_server

this method relies on server_name_prefix = "Server Name: " to fetch an audio server name, but if you have a different system locale then this method would fail!

this is my output for example

Имя сервера: **pulseaudio**

so it can't match the string properly

we need to figure out more elegant way of doing this!

Oh and furthermore, creating virtual mic isn't working also
Commands are written totally wrong!

See here for an example
https://askubuntu.com/questions/1398632/how-can-i-fit-python-pyaudio-to-to-virtual-microphone-that-i-created

If i'm going to have some time this week, I'll make a pull request

Cheers!

from lyrebird.

ps-gill avatar ps-gill commented on June 11, 2024

Switching to pactl --format=json info, might be a fix for this defect.

from lyrebird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.