You Are Here:

Community: Developer Discussion Boards

#1 Old Save audio for object, not memory card - 2008-10-02, 13:29

Join Date: Oct 2008
Posts: 4
faran12
Offline
Registered User
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()
Reply With Quote

#2 Old Re: Save audio for object, not memory card - 2008-10-02, 13:33

Join Date: Feb 2008
Posts: 2,543
Location: Bhavnagar, Gujarat, India
Send a message via Yahoo to gaba88 Send a message via Skype™ to gaba88
gaba88's Avatar
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
Reply With Quote

#3 Old Re: Save audio for object, not memory card - 2008-10-02, 14:18

Join Date: Oct 2008
Posts: 4
faran12
Offline
Registered User
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()
I'm want record sound, but audio sound not save drive C, only save string.
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.
Reply With Quote

#4 Old Re: Save audio for object, not memory card - 2008-10-02, 14:46

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
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
Reply With Quote

#5 Old Re: Save audio for object, not memory card - 2008-10-02, 14:57

Join Date: Oct 2008
Posts: 4
faran12
Offline
Registered User
I'm have create this object test.amr for memory, not drive C.
Reply With Quote

#6 Old Re: Save audio for object, not memory card - 2008-10-02, 14:58

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
Quote:
Originally Posted by faran12 View Post
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')
Hope that helps,

Best Regards,
Croozeus
Reply With Quote

#7 Old Re: Save audio for object, not memory card - 2008-10-02, 15:24

Join Date: Oct 2008
Posts: 4
faran12
Offline
Registered User
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()
Reply With Quote

#8 Old Re: Save audio for object, not memory card - 2008-10-02, 15:27

Join Date: May 2007
Posts: 2,738
Location: 21.46 N 72.11 E
croozeus's Avatar
croozeus
Offline
Forum Nokia Champion
faran12, please define your problem statement clearly.

Let us know what you wish to achieve and what problems you face.

Best Regards,
Croozeus
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
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

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia