| Reply | « Previous Thread | Next Thread » |
|
How to save audio test.amr for string/object not memory card.
Code:
import e32, audio
s = audio.Sound.open('C:\\test.amr')
s.record() # start recording
e32.ao_sleep(5) # do if for 5 seconds
s.stop() # stop recording
# the file is now created, ready to be played
s.play()
|
|
Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
gaba88
Online
Forum Nokia Champion
|
|
hi faran12
welcome to the froum nokia discussion boards. Sorry but it will be better if you make your question bit clear or explain it in more detail. Enjoy Pythoning Gaba88 Gargi Das- http://gargidas.blogsot.com Forum Nokia Python Wiki Learn Python at http://mobapps.org/PyS60 |
|
This example record sound end save audio file C:\\test.amr:
Code:
import e32, audio
s = audio.Sound.open('C:\\test.amr')
s.record() # start recording
e32.ao_sleep(5) # do if for 5 seconds
s.stop() # stop recording
# the file is now created, ready to be played
s.play()
Example: Code:
import e32, audio
s = audio.Sound.open('test.amr') # <-not working
s.record() # start recording
e32.ao_sleep(5) # do if for 5 seconds
s.stop() # stop recording
# the file is now created, ready to be played
s.play()
Last edited by faran12 : 2008-10-02 at 14:31.
|
|
Do you mean speech to text ?
![]() s = audio.Sound.open('test.amr') # <-not working Obivously the above should not work as the path is not proper. Best Regards, Croozeus |
|
I'm have create this object test.amr for memory, not drive C.
|
|
From what I understan, you want to save the file to memory card instead of Phone memory,
For doing that just replace this line: Code:
s = audio.Sound.open('E:\\test.amr')
Best Regards, Croozeus |
|
I'm not have use memory drive
.Example: Code:
import e32, audio
# s = audio.Sound.open('C:\\test.amr')
s=record(test.amr) # start recording
e32.ao_sleep(5) # do if for 5 seconds
s.stop() # stop recording
# the file is now created, ready to be played
s.play()
|
|
faran12, please define your problem statement clearly.
Let us know what you wish to achieve and what problems you face. Best Regards, Croozeus |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Phone Memory, SIM card memory and Memory Card | aliabbas | General Discussion | 2 | 2007-06-14 19:40 |
| How to read the stored audio files from memory card? | katy2 | Mobile Java Networking & Messaging & Security | 1 | 2007-03-29 09:01 |
| Storing my data on memory card on Series 40 phones | Sammybar | Mobile Java General | 1 | 2005-12-28 18:40 |
| memory card | mary_adi | General Discussion | 0 | 2004-09-01 09:15 |
| can not successfully link any sample using .NET | lobotomat | Symbian Tools & SDKs | 2 | 2002-08-20 01:29 |