looking for an audio widget

I find that in my project I should be able to "show" audio and be able to record fragments. I was looking to render it as one of those audio components you also find on websites, with a play, pause and stop button, and in some cases a record button.

Before I start coding one of those thingies, isn't there already a standard component I can (re)use for this?

Paul

···

--
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com

Hi Paul,

Two that I know of:

http://docs.python.org/lib/player-objects.html

....
                    self.player = wx.SoundFromData(open(WAVfilename, "rb").read())
                    self.player.Play()

....
Not sure if either of these support recording or not (don't see it
mentioned in the docs) though.

---Phil

Wednesday, May 23, 2007, 6:45:32 AM, you wrote:

···

I find that in my project I should be able to "show" audio and be able
to record fragments. I was looking to render it as one of those audio
components you also find on websites, with a play, pause and stop
button, and in some cases a record button.

Before I start coding one of those thingies, isn't there already a
standard component I can (re)use for this?

Paul

Hi Phil,

thanks for the input!

However these will still need some gui don’t they?

Phillip Stevens wrote:

···

http://docs.python.org/lib/module-winsound.htmlhttp://docs.python.org/lib/player-objects.htmlwxPython-users-unsubscribe@lists.wxwidgets.orgwxPython-users-help@lists.wxwidgets.org

-- Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands

http://eemvalley.com

Hi Paul,

The GUI should be pretty easy to do given wxPython. A few buttons tied to Stop,
Play, Pause, etc. See the Sound example, under Miscellaneous, in the wxPython
Demo too. The most time consuming part would seem to be creating (or locating)
and adding the button graphics for Pause "||", Play ">", etc.

I'm guessing it would take maybe 30-40 mins to create a basic player App?

Phillip Stevens wrote:

Hi Paul,

The GUI should be pretty easy to do given wxPython. A few buttons tied to Stop,
Play, Pause, etc. See the Sound example, under Miscellaneous, in the wxPython
Demo too. The most time consuming part would seem to be creating (or locating)
and adding the button graphics for Pause "||", Play ">", etc.

Luckily I bought an icon package some time ago so I can use the icons from that.

I'm guessing it would take maybe 30-40 mins to create a basic player App?

well, slightly longer as I need to do the UI by hand instead of having XRCed do it for me (see my other post today ;-))

···

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwidgets.org
For additional commands, e-mail: wxPython-users-help@lists.wxwidgets.org
  
--
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com

Paul Sijben wrote:

I find that in my project I should be able to "show" audio and be able to record fragments. I was looking to render it as one of those audio components you also find on websites, with a play, pause and stop button, and in some cases a record button.

Before I start coding one of those thingies, isn't there already a standard component I can (re)use for this?

If you can read wx C++ code then you can get some ideas from the Audacity project. http://audacity.sourceforge.net/

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

thanks for the pointer.
As Phillip Stevens rightly wrote, doing the UI should not be hard. I got most of it. Only need to bind it to an audio component that will allow me to do pause and recording.

Robin Dunn wrote:

···

Paul Sijben wrote:

I find that in my project I should be able to "show" audio and be able to record fragments. I was looking to render it as one of those audio components you also find on websites, with a play, pause and stop button, and in some cases a record button.

Before I start coding one of those thingies, isn't there already a standard component I can (re)use for this?

If you can read wx C++ code then you can get some ideas from the Audacity project. http://audacity.sourceforge.net/

--
Paul Sijben tel: +31334566488
Eemvalley Technology fax: +31334557523
the Netherlands http://eemvalley.com