Re: Play Ogg Files

Discussion in 'Python' started by Stefan Behnel, Jul 20, 2013.

  1. Devyn Collier Johnson, 20.07.2013 03:06:
    > I am making a chatbot that I host on Launchpad.net/neobot. I am currently
    > converting the engine from BASH code to Python3. I need to convert this for
    > cross-platform compatibility. I do not need to use Mplayer; I just show the
    > below code to give others a better idea what I am doing. I would prefer to
    > be Python3 independent; I do not want to use the system shell. I am fine
    > with using Python3 modules like Pygame (if there is a py3 module). As long
    > as the code is fast, efficient, and simple without depending on the system
    > shell or external apps, that would be nice. I also need the code to execute
    > while the rest of the script continues running.
    >
    > jobs = multiprocessing.Process(SEND = subprocess.getoutput('mplayer
    > -nogui -nolirc -noar -quiet ./conf/boot.ogg')) #Boot sound#


    Well, since you mentioned it already, have you actually looked at pygame?
    It should be able to do what you want. There's also pyaudio, which is more
    specialised to, well, audio. A web search for python and ogg might provide
    more.

    Stefan
     
    Stefan Behnel, Jul 20, 2013
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Devyn Collier Johnson

    Play Ogg Files

    Devyn Collier Johnson, Jul 19, 2013, in forum: Python
    Replies:
    0
    Views:
    123
    Devyn Collier Johnson
    Jul 19, 2013
  2. Devyn Collier Johnson

    Play Ogg Files

    Devyn Collier Johnson, Jul 20, 2013, in forum: Python
    Replies:
    0
    Views:
    135
    Devyn Collier Johnson
    Jul 20, 2013
  3. Devyn Collier Johnson

    Re: Play Ogg Files

    Devyn Collier Johnson, Jul 20, 2013, in forum: Python
    Replies:
    1
    Views:
    146
    alex23
    Jul 23, 2013
  4. David Hutto

    Re: Play Ogg Files

    David Hutto, Jul 21, 2013, in forum: Python
    Replies:
    0
    Views:
    131
    David Hutto
    Jul 21, 2013
  5. David Hutto

    Re: Play Ogg Files

    David Hutto, Jul 21, 2013, in forum: Python
    Replies:
    0
    Views:
    109
    David Hutto
    Jul 21, 2013
Loading...

Share This Page