Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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; 'linux,': 0.07; 'python3': 0.07; 'bash': 0.09; 'collier': 0.09; 'python': 0.11; '2.7.3': 0.16; 'already,': 0.16; 'module).': 0.16; 'pygame': 0.16; 'python3.': 0.16; 'stdin=none,': 0.16; 'stdout=none,': 0.16; 'sat,': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'looked': 0.18; 'stefan': 0.19; '>>>': 0.22; 'import': 0.22; 'aug': 0.22; 'shell': 0.22; 'header:User-Agent:1': 0.23; '>>>': 0.24; 'fine': 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; 'url:mailman': 0.30; 'code': 0.31; 'received:10.0.0': 0.31; "skip:' 10": 0.31; 'continues': 0.31; 'file': 0.32; '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; 'received:10.0': 0.36; 'url:org': 0.36; 'should': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'skip:. 10': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'mentioned': 0.61; 'simple': 0.61; 'making': 0.63; 'show': 0.63; 'provide': 0.64; 'more': 0.64; 'jobs': 0.68; '20,': 0.68; 'to,': 0.72; 'jul': 0.74; 'fast,': 0.84; 'johnson,': 0.91; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; bh=JMS47uP33puPfWFw/IA9ehCThVtGOxTrdWCmrk4cU4s=; b=HyVX1zkEskLlHWvR7r4j7/l8EJ3DJ1cHHN6S+PztDb5fuNwadIp6YLmJQlREF49fVN SlS4lOq6/Haf8hxUENLRMtKFYSb/pyWmy+mdPsieo4Izy4c0xFE+XkSPuRRrKrCA++/Q pGjItOEnU7IK9yMX/XgGePSGI3H/by33DUlVWNWOFpAwrCVpX0uR4+gIlbgbfEmCAbua W3Gjpsd3I0Dv1z+tBUXp2DiLWbZUQH8fK2BDrXFGrfmjOlLq2FaY89A4KFOY/3GNNjzz mbnKNeD2PslQcjVnyfVLFJDKFhhOnIGgdu/T1EqquuZVcwOdFiBfDTDdgxb5sbXWmpNJ TGkg== X-Received: by 10.42.52.201 with SMTP id k9mr13463578icg.47.1374323957741; Sat, 20 Jul 2013 05:39:17 -0700 (PDT) Date: Sat, 20 Jul 2013 08:39:14 -0400 From: Devyn Collier Johnson User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130623 Thunderbird/17.0.7 MIME-Version: 1.0 To: Python Mailing List Subject: Re: Play Ogg Files References: <51E9E29E.7010203@Gmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------030607030206050903040202" 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: 183 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374323965 news.xs4all.nl 15959 [2001:888:2000:d::a6]:43884 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:50965 This is a multi-part message in MIME format. --------------030607030206050903040202 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 07/20/2013 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_ > > Where did Espeak come from? This is about playing an ogg file using Python3 code. DCJ --------------030607030206050903040202 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit
On 07/20/2013 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 <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


Where did Espeak come from? This is about playing an ogg file using Python3 code.

DCJ
--------------030607030206050903040202--