Account Options

  1. Sign in
Google Groups Home
« Groups Home
Manipulating realaudio player from python?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Raman T. V.  
View profile  
 More options Jul 13 1998, 3:00 am
Newsgroups: comp.lang.python
From: ra...@adobe.com (Raman T. V.)
Date: 1998/07/13
Subject: Manipulating realaudio player from python?
Hi--

Does anyone   have the necessary code
for manipulating the realaudio player from python?

I'm looking for a solution that will allow me to create a simple python client for playing realaudio --so I have an alternative to the GUI provided by realaudio.

For some background: I'm looking to control realaudio from the environment of my choice --emacs--
I currently use my own emacspeak-realaudio.el --an emacspeak module that allows me to start and stop playing realaudio.
If I create a python script to manipulate the realplayer, I would anticipate building in the ability to pause/resume and rewind/forward.
--Raman
--
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (408) 536 3945   (W14-612)
      Advanced Technology Group     Fax: 1 (408) 537 4042
      (W14 129) 345 Park Avenue     Email: ra...@adobe.com
      San Jose , CA 95110 -2704     Email:  ra...@cs.cornell.edu
      http://labrador.corp.adobe.com/~raman/        (Adobe Intranet)
      http://cs.cornell.edu/home/raman/raman.html    (Cornell)
----------------------------------------------------------------------
    Disclaimer: The opinions expressed are my own and in no way should be taken
as representative of my employer, Adobe Systems Inc.
____________________________________________________________


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guido van Rossum  
View profile  
 More options Jul 14 1998, 3:00 am
Newsgroups: comp.lang.python
From: Guido van Rossum <gu...@CNRI.Reston.Va.US>
Date: 1998/07/14
Subject: Re: Manipulating realaudio player from python?

> Does anyone   have the necessary code
> for manipulating the realaudio player from python?
> I'm looking for a solution that will allow me to create a simple
> python client for playing realaudio --so I have an alternative to
> the GUI provided by realaudio.
> For some background: I'm looking to control realaudio from the
> environment of my choice --emacs-- I currently use my own
> emacspeak-realaudio.el --an emacspeak module that allows me to start
> and stop playing realaudio.  If I create a python script to
> manipulate the realplayer, I would anticipate building in the
> ability to pause/resume and rewind/forward.

I would assume if it's possible from Emacs, it's possible from
Python.  How does emacspeak-realaudio.el do it?  (I don't know what it
is -- where could I download it?)

--Guido van Rossum (home page: http://www.python.org/~guido/)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
T. V. Raman  
View profile  
 More options Jul 14 1998, 3:00 am
Newsgroups: comp.lang.python
From: "T. V. Raman" <ra...@Adobe.COM>
Date: 1998/07/14
Subject: Re: Manipulating realaudio player from python?
Hi Guido--

Actually emacspeak-realaudio.el --one of the modules in my
speech extension to emacs (emacspeak) is currently only
capable of launching or stopping a reaulaudio stream --I do
this by simply nuking the realaudio process.

What I was hoping for was some python code or python library
that would allow me to drive the realplayer from python i.e.
the ability to activate the various UI components of the
realplayer client from Python  --think of it as "ole
automation done right" if you will.

Incidentally, it's a pleasure to hear from you directly-- I
have always admired python as a language for the clean
design -- as well as your own writings on the subject on the
python site.

I came to python late -- I am still a perl5 hacker --and
before perl5 I wrote tcl-- python scared me off until I
developped emacspeak because of whitespace being
significant.

For background-- I'm blind and use speech output to program
and use the computer in other ways-- before emacspeak I was
limited to what other blind users use --namely utilities
that read the screen --and in that environment handling
python was hard.

I wrote myself emacspeak starting 1994
(http://cs.cornell.edu/home/raman/emacspeak) and early this
year I wrote an emacspeak extension to Barry Warsaw's
excellent python mode-- and so now writing python is a snap.

Still haven't written anything substantial in Python-- but
the realaudio enabler would be an interesting possibility--
more generally a set of python libraries that allowed me to
query and manipulate a generic GUI would be wonderful to
achieve.

--
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (408) 536 3945   (W14-612)
      Advanced Technology Group     Fax: 1 (408) 537 4042
      (W14 129) 345 Park Avenue     Email: ra...@adobe.com
      San Jose , CA 95110 -2704     Email:  ra...@cs.cornell.edu
      http://labrador.corp.adobe.com/~raman/        (Adobe Intranet)
      http://cs.cornell.edu/home/raman/raman.html    (Cornell)
----------------------------------------------------------------------
    Disclaimer: The opinions expressed are my own and in no way should be taken
as representative of my employer, Adobe Systems Inc.
____________________________________________________________


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guido van Rossum  
View profile  
 More options Jul 14 1998, 3:00 am
Newsgroups: comp.lang.python
From: Guido van Rossum <gu...@CNRI.Reston.Va.US>
Date: 1998/07/14
Subject: Re: Manipulating realaudio player from python?

> What I was hoping for was some python code or python library
> that would allow me to drive the realplayer from python i.e.
> the ability to activate the various UI components of the
> realplayer client from Python  --think of it as "ole
> automation done right" if you will.

Hi Raman -- in order to do this, you would presumably need some kind
of developers' kit for RealPlayer.  I noticed that they have a
Software Development Kit at http://www.realaudio.com/devzone/index.html;
hopefully it has enough information.  I haven't looked at the SDK -- I
would expect that on Windows they have a COM interface, but I don't
know what they support on Unix (assuming that's what you're after).

If there's no COM interface but a they provide a C library to control
the player, it wouldn't be too hard to create a Python extension that
talks to the library, using any of the available tools (e.g. SWIG) or
-- if it's a small library -- by writing wrappers manually.

> Incidentally, it's a pleasure to hear from you directly-- I
> have always admired python as a language for the clean
> design -- as well as your own writings on the subject on the
> python site.

Thanks...  Blush...

> I came to python late -- I am still a perl5 hacker --and
> before perl5 I wrote tcl-- python scared me off until I
> developped emacspeak because of whitespace being
> significant.

> For background-- I'm blind and use speech output to program
> and use the computer in other ways-- before emacspeak I was
> limited to what other blind users use --namely utilities
> that read the screen --and in that environment handling
> python was hard.

> I wrote myself emacspeak starting 1994
> (http://cs.cornell.edu/home/raman/emacspeak) and early this
> year I wrote an emacspeak extension to Barry Warsaw's
> excellent python mode-- and so now writing python is a snap.

Hm...  Now I'm curious...  How does it speak the significant use of
indentation on Python?

> Still haven't written anything substantial in Python-- but
> the realaudio enabler would be an interesting possibility--
> more generally a set of python libraries that allowed me to
> query and manipulate a generic GUI would be wonderful to
> achieve.

Like embellishing a GUI built on Tkinter?

--Guido van Rossum (home page: http://www.python.org/~guido/)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Guido van Rossum  
View profile  
 More options Jul 14 1998, 3:00 am
Newsgroups: comp.lang.python
From: Guido van Rossum <gu...@CNRI.Reston.Va.US>
Date: 1998/07/14
Subject: Re: Manipulating realaudio player from python?
Thanks for the explanations.  I'm intrigued by what your world "looks"
like.

> The acid test would be to write such a thing and see if one
> could speech-enable something like Grail.

> The idea behind speech-enabling --as implemented in
> emacspeak--
> as opposed to screenreaders is that you let the application
> do the talking since it knows best what it is trying to
> convey to the user--
> rather than have a second app (the screenreader) examine the
> visual display to produce the right spoken output.

Absolutely true.  So there may be a future for Grail after all...

--Guido van Rossum (home page: http://www.python.org/~guido/)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
T. V. Raman  
View profile  
 More options Jul 14 1998, 3:00 am
Newsgroups: comp.lang.python
From: "T. V. Raman" <ra...@Adobe.COM>
Date: 1998/07/14
Subject: Re: Manipulating realaudio player from python?
Guido van Rossum writes:

 > > What I was hoping for was some python code or python library
 > > that would allow me to drive the realplayer from python i.e.
 > > the ability to activate the various UI components of the
 > > realplayer client from Python  --think of it as "ole
 > > automation done right" if you will.
 >
 > Hi Raman -- in order to do this, you would presumably need some kind
 > of developers' kit for RealPlayer.  I noticed that they have a
 > Software Development Kit at http://www.realaudio.com/devzone/index.html;
 > hopefully it has enough information.  I haven't looked at the SDK -- I
 > would expect that on Windows they have a COM interface, but I don't
 > know what they support on Unix (assuming that's what
 > you're after).
UNIX is what I am primarily after--
I'll poke around their SDK one of these weekends.
 >
 > If there's no COM interface but a they provide a C library to control
 > the player, it wouldn't be too hard to create a Python extension that
 > talks to the library, using any of the available tools (e.g. SWIG) or
 > -- if it's a small library -- by writing wrappers
 > manually.
Yes-- I agree.
 >
 > > Incidentally, it's a pleasure to hear from you directly-- I
 > > have always admired python as a language for the clean
 > > design -- as well as your own writings on the subject on the
 > > python site.
 >
 > Thanks...  Blush...
 >
 > > I came to python late -- I am still a perl5 hacker --and
 > > before perl5 I wrote tcl-- python scared me off until I
 > > developped emacspeak because of whitespace being
 > > significant.
 > >
 > > For background-- I'm blind and use speech output to program
 > > and use the computer in other ways-- before emacspeak I was
 > > limited to what other blind users use --namely utilities
 > > that read the screen --and in that environment handling
 > > python was hard.
 > >
 > > I wrote myself emacspeak starting 1994
 > > (http://cs.cornell.edu/home/raman/emacspeak) and early this
 > > year I wrote an emacspeak extension to Barry Warsaw's
 > > excellent python mode-- and so now writing python is a snap.
 >
 > Hm...  Now I'm curious...  How does it speak the significant use of
 > indentation on Python?

Announces the indentation level in a slightly softer voice.
But when using emacspeak with python mode,
I rely more on python-mode doing the right thing,
and use it's awareness of the block structure of the code to
speak things right.

Thus, as I close each block, I hear the block that I am
closing with utterances of the form
"closes block while: i<n"
"closes block def foo: "
etc.
 >
 > > Still haven't written anything substantial in Python-- but
 > > the realaudio enabler would be an interesting possibility--
 > > more generally a set of python libraries that allowed me to
 > > query and manipulate a generic GUI would be wonderful to
 > > achieve.
 >
 > Like embellishing a GUI built on Tkinter?
would be a possibility.
The acid test would be to write such a thing and see if one
could speech-enable something like Grail.

The idea behind speech-enabling --as implemented in
emacspeak--
as opposed to screenreaders is that you let the application
do the talking since it knows best what it is trying to
convey to the user--
rather than have a second app (the screenreader) examine the
visual display to produce the right spoken output.
 >
 > --Guido van Rossum (home page: http://www.python.org/~guido/)

--
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (408) 536 3945   (W14-612)
      Advanced Technology Group     Fax: 1 (408) 537 4042
      (W14 129) 345 Park Avenue     Email: ra...@adobe.com
      San Jose , CA 95110 -2704     Email:  ra...@cs.cornell.edu
      http://labrador.corp.adobe.com/~raman/        (Adobe Intranet)
      http://cs.cornell.edu/home/raman/raman.html    (Cornell)
----------------------------------------------------------------------
    Disclaimer: The opinions expressed are my own and in no way should be taken
as representative of my employer, Adobe Systems Inc.
____________________________________________________________


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
T. V. Raman  
View profile  
 More options Jul 14 1998, 3:00 am
Newsgroups: comp.lang.python
From: "T. V. Raman" <ra...@Adobe.COM>
Date: 1998/07/14
Subject: Re: Manipulating realaudio player from python?
Guido van Rossum writes:

 > Thanks for the explanations.  I'm intrigued by what your world "looks"
 > like.
Actually it sounds outstanding:-)
 >
 > > The acid test would be to write such a thing and see if one
 > > could speech-enable something like Grail.
 > >
 > > The idea behind speech-enabling --as implemented in
 > > emacspeak--
 > > as opposed to screenreaders is that you let the application
 > > do the talking since it knows best what it is trying to
 > > convey to the user--
 > > rather than have a second app (the screenreader) examine the
 > > visual display to produce the right spoken output.
 >
 > Absolutely true.  So there may be a future for Grail after all...
 >
 > --Guido van Rossum (home page: http://www.python.org/~guido/)

--
Best Regards,
--raman

      Adobe Systems                 Tel: 1 (408) 536 3945   (W14-612)
      Advanced Technology Group     Fax: 1 (408) 537 4042
      (W14 129) 345 Park Avenue     Email: ra...@adobe.com
      San Jose , CA 95110 -2704     Email:  ra...@cs.cornell.edu
      http://labrador.corp.adobe.com/~raman/        (Adobe Intranet)
      http://cs.cornell.edu/home/raman/raman.html    (Cornell)
----------------------------------------------------------------------
    Disclaimer: The opinions expressed are my own and in no way should be taken
as representative of my employer, Adobe Systems Inc.
____________________________________________________________


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Prescod  
View profile  
 More options Jul 14 1998, 3:00 am
Newsgroups: comp.lang.python
From: Paul Prescod <papre...@technologist.com>
Date: 1998/07/14
Subject: Re: Manipulating realaudio player from python?
One thing that I've always wondered (but never had the initiative to
research) iswhether it is feasible to "tape" RealAudio shows digitally.
Obviously, if you know the protocol, there is a way. But is the protocol
open or secret?

 Paul Prescod


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Phil Austin  
View profile  
 More options Jul 15 1998, 3:00 am
Newsgroups: comp.lang.python
From: Phil Austin <p...@geog.ubc.ca>
Date: 1998/07/15
Subject: Re: Manipulating realaudio player from python?

Paul Prescod <papre...@technologist.com> writes:

> One thing that I've always wondered (but never had the initiative to
> research) iswhether it is feasible to "tape" RealAudio shows digitally.
> Obviously, if you know the protocol, there is a way. But is the protocol
> open or secret?

>  Paul Prescod

Coincidentally, this appeared this morning in comp.os.linux.announce:

From: jdimp...@acm.org
Subject: paudio 1.0 -- universal Linux sound grabber
Newsgroups: comp.os.linux.announce
Date: Wed, 15 Jul 1998 11:14:32 GMT
Followup-To: comp.os.linux.misc
Organization: none
Path: unixg.ubc.ca!nntp.cs.ubc.ca!hub.org!falcon!news-out.internetmci.com!newsfee d.internetmci.com!207.114.4.11!nntp.abs.net!newsfeed1.telenordia.se!newsfee d1.funet.fi!128.214.205.17.MISMATCH!news.helsinki.fi!not-for-mail
Lines: 55
Approved: linux-annou...@news.ornl.gov (Mikko Rauhala)
Message-ID: <pycola.900501272.937@laulujoutsen.pc.helsinki.fi>
NNTP-Posting-Host: laulujoutsen.pc.helsinki.fi
Old-Date: Tue, 14 Jul 1998 02:25:14 -0400
X-No-Archive: yes
X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce
        iQCVAgUBNayPHFrUI/eHXJZ5AQG4FwP+KETTrNLuhjmlx+0gOmBZvHQsxQYkxloN
        IZSRbCGyIf0Wn2ZMg8Tml8BgfrJVMU+SLKD+XBIbqEf1IlFtQT8f5QC6L4M8GJWc
        Yt4QyEr32xtmLmF/rSEDzcX0X8mgEacedUE6glMe2bwCGKYlp1szphilJvvhNp2d
        H4+QE6j7o9Y=
        =LLDb
Xref: unixg.ubc.ca comp.os.linux.announce:11000

-----BEGIN PGP SIGNED MESSAGE-----

paudio version 1.0 is released.  Thanks go to Alexander Yukhimets
<aqy6...@is5.nyu.edu> for his patch giving paudio a bigger buffer.  Duh.  
With it he singlehandedly brought paudio from 0.1 to 1.0.

paudio allows you to capture any and all data being sent to the sound
card via /dev/audio* or /dev/dsp*.

paudio makes it possible for the user to save to disk (or anything else)
audio data.  It is useful when an audio-based program does not have a
'save' option (such as 'rvplayer' from Real Networks).

[Disclaimer: With this software, it is possible to save data that is
 streamed to things like a RealAudio program.  Often, this data is not
 meant for download and saving, but only for listening.  That is, it may
 not be intended for it to be saved to a local disk.  The author is not
 responsible for misuse of this software.  Please be aware of copyright on
 all materials that you save.]

paudio is a loadable module (paudio.o) that creates a /proc entry
(called /proc/audio) which can be read from.  The audio data currently being
sent to the sound card will be mirrored there.

It can be found at the following locations:

http://sunsite.unc.edu/pub/Linux/???/paudio-1.0.tgz (check INCOMING and NEW)
http://source.syr.edu/~jdimpson/proj/paudio-1.0.tgz

The author is your's truly, Jeremy D. Impson <jdimp...@acm.org>

- --Jeremy

- --
This article has been digitally signed by the moderator, using PGP.
http://www.iki.fi/mjr/cola-public-key.asc has PGP key for validating signature.
Send submissions for comp.os.linux.announce to: linux-annou...@news.ornl.gov
PLEASE remember a short description of the software and the LOCATION.
This group is archived at http://www.iki.fi/mjr/linux/cola.html

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: latin1

iQCVAgUBNayPG1rUI/eHXJZ5AQGfQwQAz4iX1KyvR0PiOaOOWoLDlySK2qoOnhHp
W8gDVIgRFprtP9u+5U26ElfIopgnBuP4oa1ZFlt0NWWMU+i4FRU4FJRIzEm5GwJj
UxTi0FZqgmboTIP68Pd5bX5FsDBOfABn/i1e2VHvgkEWQufY7ND/89x+yt9a78rV
E85fgZhebKA=
=SQnw
-----END PGP SIGNATURE-----

--
------------------------------------------------------------
Phil Austin  (p...@geog.ubc.ca)
Department of Geography,                 Tel: (604) 822-2663
University of British Columbia, B.C.     Fax: (604) 822-6150


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »