Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #50952
| References | <51E9E29E.7010203@Gmail.com> <ksd37r$coj$1@ger.gmane.org> <CA+vVgJWvQ1ARfU82TW6HciYn2yC1ZqPy8+1k2QX0khsRDgDqjg@mail.gmail.com> <CA+vVgJWPMQ+cLVor0+Y8ruSORW5vkoj34Nj7B+pQUisyJyOQew@mail.gmail.com> |
|---|---|
| Date | 2013-07-20 00:59 -0400 |
| Subject | Re: Play Ogg Files |
| From | David Hutto <dwightdhutto@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.4909.1374296410.3114.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
Just get a good dictionary, and distutils I believe, someone a little bit
more experienced in these should be along soon, or use the manual, and docs.
On Sat, Jul 20, 2013 at 12:52 AM, David Hutto <dwightdhutto@gmail.com>wrote:
> This is using 3.2, which shouldn't be far off, the latest I could get on
> ubuntu.
>
> david@david:~$ python3.2
> Python 3.2.3 (default, Apr 10 2013, 05:29:11)
> [GCC 4.6.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import subprocess
> >>> subprocess.call(['espeak', 'word_spoken'], stdin=None, stdout=None,
> stderr=None, shell=False)
>
>
> On Sat, Jul 20, 2013 at 12:39 AM, David Hutto <dwightdhutto@gmail.com>wrote:
>
>> you could use , and I think its
>>
>> david@david:~$ python
>> Python 2.7.3 (default, Aug 1 2012, 05:16:07)
>> [GCC 4.6.3] on linux2
>> Type "help", "copyright", "credits" or "license" for more information.
>> >>> import subprocess
>> >>> subprocess.call(['espeak', 'word_spoken'], stdin=None, stdout=None,
>> stderr=None, shell=False)
>>
>>
>>
>> This is on ubuntu linux, using espeak.
>> this is on ubun
>>
>>
>> On Sat, Jul 20, 2013 at 12:21 AM, Stefan Behnel <stefan_ml@behnel.de>wrote:
>>
>>> 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
>>>
>>>
>>> --
>>> http://mail.python.org/mailman/listinfo/python-list
>>>
>>
>>
>>
>> --
>> Best Regards,
>> David Hutto
>> *CEO:* *http://www.hitwebdevelopment.com*
>>
>
>
>
> --
> Best Regards,
> David Hutto
> *CEO:* *http://www.hitwebdevelopment.com*
>
--
Best Regards,
David Hutto
*CEO:* *http://www.hitwebdevelopment.com*
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Play Ogg Files David Hutto <dwightdhutto@gmail.com> - 2013-07-20 00:59 -0400
csiph-web