Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Recording audio in python

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


mark.chang at gmail

Mar 7, 2008, 7:10 AM

Post #1 of 5 (5447 views)
Permalink
Recording audio in python

Sorry for the ignorance -- I just got this thing :).

We are trying to do recording from the microphone input and playback
using Python. The archives tell me that I can do playback through
osso-media-server or through gstreamer, and that the osso thing is the
native playback mechanism. I saw some demo playback code in Kagu here:

http://kagumedia.com/projects/kagu/browser/trunk/src/kagu/ossoplayer.py

and some gstreamer code there as well. The archives also tell me that
I should record using gstreamer.

Questions:
1) is there a canonical tutorial/example for using osso-media-server,
or shall I learn from Kagu?
2) is there the same for audio recording using gstreamer?

I am new to the gstreamer thing, so be gentle ;)

--
Mark L. Chang
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


Fred at Lefevere-Laoide

Mar 7, 2008, 7:13 AM

Post #2 of 5 (5349 views)
Permalink
Re: Recording audio in python [In reply to]

Mark Chang a écrit :
> Sorry for the ignorance -- I just got this thing :).
>
> We are trying to do recording from the microphone input and playback
> using Python. The archives tell me that I can do playback through
> osso-media-server or through gstreamer, and that the osso thing is the
> native playback mechanism. I saw some demo playback code in Kagu here:
>
> http://kagumedia.com/projects/kagu/browser/trunk/src/kagu/ossoplayer.py
>
> and some gstreamer code there as well. The archives also tell me that
> I should record using gstreamer.
>
> Questions:
> 1) is there a canonical tutorial/example for using osso-media-server,
> or shall I learn from Kagu?
> 2) is there the same for audio recording using gstreamer?
>
> I am new to the gstreamer thing, so be gentle ;)
>
I suppose you could get recording example from "Maemo Recorder" ...

Fred
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


mark.chang at gmail

Mar 7, 2008, 6:33 PM

Post #3 of 5 (5366 views)
Permalink
Re: Recording audio in python [In reply to]

On Fri, Mar 7, 2008 at 10:13 AM, Fred <Fred [at] lefevere-laoide> wrote:
> I suppose you could get recording example from "Maemo Recorder" ...

I thought that was C? I'll take a peek and see if I can glean something.


--
Mark L. Chang
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


ensonic at hora-obscura

May 11, 2008, 12:31 PM

Post #4 of 5 (5150 views)
Permalink
Re: Recording audio in python [In reply to]

Mark Chang schrieb:
> Sorry for the ignorance -- I just got this thing :).
>
> We are trying to do recording from the microphone input and playback
> using Python. The archives tell me that I can do playback through
> osso-media-server or through gstreamer, and that the osso thing is the
> native playback mechanism. I saw some demo playback code in Kagu here:
>
> http://kagumedia.com/projects/kagu/browser/trunk/src/kagu/ossoplayer.py
>
> and some gstreamer code there as well. The archives also tell me that
> I should record using gstreamer.
>
> Questions:
> 1) is there a canonical tutorial/example for using osso-media-server,
> or shall I learn from Kagu?
> 2) is there the same for audio recording using gstreamer?
>
> I am new to the gstreamer thing, so be gentle ;)
>

Use gstreamer for both. Osso-media-server is not public api. Just look at
general python gstreamer ressources and then use dsppcmsrc/sink instead of
alsasrc/sink. Be also aware that the src is made for voip add and only support
8khz (yes, thats a pity).

Stefan
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


andre.martins at ee

May 11, 2008, 3:30 PM

Post #5 of 5 (5151 views)
Permalink
Re: Recording audio in python [In reply to]

>
> Mark Chang schrieb:
> > Sorry for the ignorance -- I just got this thing :).
> >
> > We are trying to do recording from the microphone input and playback
> > using Python. The archives tell me that I can do playback through
> > osso-media-server or through gstreamer, and that the osso thing is the
> > native playback mechanism. I saw some demo playback code in Kagu here:
> >
> > http://kagumedia.com/projects/kagu/browser/trunk/src/kagu/ossoplayer.py
> >
> > and some gstreamer code there as well. The archives also tell me that
> > I should record using gstreamer.
> >
> > Questions:
> > 1) is there a canonical tutorial/example for using osso-media-server,
> > or shall I learn from Kagu?
> > 2) is there the same for audio recording using gstreamer?
> >
> > I am new to the gstreamer thing, so be gentle ;)
> >


An alternative to your current try is Easy
<http://easy.garage.maemo.org>(kinda more high level). It provides
easy recording and playback, and many
more multimedia stuff.

--
André Dieb Martins

Embedded Systems and Pervasive Computing Lab (Embedded)
Electrical Engineering Department (DEE)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)

Blog: http://genuinepulse.blogspot.com/

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.