Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin3!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.012 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'apps,': 0.07; 'distutils': 0.07; 'linux,': 0.07; 'python3': 0.07; 'bash': 0.09; 'collier': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '2.7.3': 0.16; 'already,': 0.16; 'dictionary,': 0.16; 'docs.': 0.16; 'module).': 0.16; 'pygame': 0.16; 'python3.': 0.16; 'stdin=none,': 0.16; 'stdout=none,': 0.16; 'ubuntu.': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'looked': 0.18; 'bit': 0.19; 'stefan': 0.19; '>>>': 0.22; 'import': 0.22; 'aug': 0.22; 'email addr:gmail.com>': 0.22; 'shell': 0.22; 'cc:addr:python.org': 0.22; '>>>': 0.24; "shouldn't": 0.24; 'fine': 0.24; 'cc:2**0': 0.24; 'script': 0.25; '>': 0.26; 'header:In-Reply-To:1': 0.27; 'idea': 0.28; 'host': 0.29; 'rest': 0.29; 'external': 0.29; 'am,': 0.29; 'converting': 0.30; 'message-id:@mail.gmail.com': 0.30; 'along': 0.30; 'url:mailman': 0.30; 'code': 0.31; "skip:' 10": 0.31; 'continues': 0.31; 'url:python': 0.33; 'could': 0.34; 'convert': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'ubuntu': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'should': 0.36; 'skip:& 10': 0.38; 'little': 0.38; 'skip:& 20': 0.39; 'skip:. 10': 0.39; 'url:mail': 0.40; 'mentioned': 0.61; 'simple': 0.61; 'making': 0.63; 'show': 0.63; 'provide': 0.64; 'more': 0.64; 'latest': 0.67; 'jobs': 0.68; '20,': 0.68; 'to,': 0.72; 'jul': 0.74; 'soon,': 0.74; 'believe,': 0.84; 'fast,': 0.84; 'manual,': 0.84; 'off,': 0.84; '2013,': 0.91; 'johnson,': 0.91; '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=m6m0dUIv1svhDRUQWR7PF5d6b3Tuz+MEXuXmIxPZQSw=; b=Jt4Pxcz0MFM6w4+X6jVmfk+qHkCvCI0DR6wC8psg4FYhiLf8l/OljMzxK7mceRyBOI pBRerJtVVMKkS/4a4pTqJJG2Qe6vDbb9E6I3fNJ2T/uqNBqYmJiy1VblGkAmkOla6cgl Fyb1/AkciWz9lohQfV/qCUmvLzrfhZ1FofwU1gP0XfAeoG0MkRmakeCdJ8xEU28ezenh 45w86D6Pw3J6SzpaZP03ImAQ9pexjTtFP2k67r4jazJaoyVM+SpLDHUdsRSfVtbnHuSo nvC26MgGWj0mOlQrW/1Kz39N8yxIF4aNKCB7q1rKG55NsDl0+RecmVhVkeRf2a4nJBrJ McMQ== MIME-Version: 1.0 X-Received: by 10.224.123.68 with SMTP id o4mr21540102qar.106.1374296399754; Fri, 19 Jul 2013 21:59:59 -0700 (PDT) In-Reply-To: References: <51E9E29E.7010203@Gmail.com> Date: Sat, 20 Jul 2013 00:59:59 -0400 Subject: Re: Play Ogg Files From: David Hutto To: Stefan Behnel Content-Type: multipart/alternative; boundary=047d7bd6bc92b9393e04e1ea5002 Cc: python-list X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 210 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374296410 news.xs4all.nl 15885 [2001:888:2000:d::a6]:48282 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50952 --047d7bd6bc92b9393e04e1ea5002 Content-Type: text/plain; charset=ISO-8859-1 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 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 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 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* --047d7bd6bc92b9393e04e1ea5002 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Just get a good dictionary, and distutils I believe, someo= ne a little bit more experienced in these should be along soon, or use the = manual, and docs.
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0


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, th= e 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=3DNone, stdout=3DNone, stderr=3DNone, = shell=3DFalse)


On Sat, Jul 20, 2013 at 12:39 AM, David Hutto <dwightdhutto@gmail.com= > wrote:
you could use , and I think its

david@dav= id:~$ python
Python 2.7.3 (default, Aug=A0 1 2012, 05:16:07)
[GCC 4.= 6.3] on linux2
Type "help", "copyright", "credi= ts" or "license" for more information.
>>> import subprocess
>>> subprocess.call(['espeak= ', 'word_spoken'], stdin=3DNone, stdout=3DNone, stderr=3DNone, = shell=3DFalse)



This is on ubuntu linux, = using espeak.
this is on ubun

On Sat, Jul 20, 2013 at 12:21 AM, Stefan B= ehnel <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 curren= tly
> converting the engine from BASH code to Python3. I need to convert thi= s for
> cross-platform compatibility. I do not need to use Mplayer; I just sho= w the
> below code to give others a better idea what I am doing. I would prefe= r to
> be Python3 independent; I do not want to use the system shell. I am fi= ne
> 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 sy= stem
> shell or external apps, that would be nice. I also need the code to ex= ecute
> while the rest of the script continues running.
>
> =A0 =A0 jobs =3D multiprocessing.Process(SEND =3D 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 m= ore
specialised to, well, audio. A web search for python and ogg might provide<= br> more.

Stefan


--
http://mail.python.org/mailman/listinfo/python-list



--
Best Regards,
David Hutto
CEO: <= a href=3D"http://www.hitwebdevelopment.com" target=3D"_blank">http://www.hi= twebdevelopment.com



--
Best Regards,
David Hutto
<= b>CEO: http://www.hitwebdevelopment.com



--
Best Regard= s,
David Hutto
CEO: http://www.hitwebdevelopment.com
--047d7bd6bc92b9393e04e1ea5002--