| Reply | « Previous Thread | Next Thread » |
|
my code as following:
import audio form audio import * #msg.mid exists file = "c:\\msg.mid" s = Sound.open(file) s.play() here is error report: Error opening file:KErrNotSupported why??my device is 6600 |
|
can any body tell me whether there is something wrong with my code or not supported on my device?
I desprately need this feature.thanks all. |
|
Quote:
|
|
hi jethro.fn:
thanks for your reminder,wav-file works well,however,another funny problem araised,when I use this code directly,it works,but when I put this code in a function,it failed to make a sound for example: #this code works well import audio from audio import * #msg.wav exists file = "c:\\msg.wav" s = Sound.open(file) s.play() ######but the code as folllow failed: HTML Code:
import audio
from audio import *
#msg.wav exists
def sound_play():
file = "c:\\msg.wav"
s = Sound.open(file)
s.play()
sound_play()
|
|
Quote:
You need to wait for the sound to end in sound_play() or make sure "s" is not deleted prematurely, for example: Code:
import audio
from audio import *
s = None
def sound_play():
global s
file = "c:\\msg.wav"
s = Sound.open(file)
s.play()
sound_play()
|
|
buddy ,thanks for your kindness
it works now. |
|
I've got a question concerning the set_volume command,
This code works fine: Code:
def sound_play(): global s s.set_volume(SetupForm.getVolume()) s.play() Code:
audio.set_volume(5) audio.say(unicode(cid)) |
|
And can I control the speed of the reading? And what about volume? And how to put in pauses?
And finally, my programm stops running as long as the duration of the speech output. How can I make I application do not wait untill the speech is finished?
Last edited by carknue : 2007-07-24 at 23:04.
|
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| Compare() works in emulator but doesn't work in phone | yencruz | General Symbian C++ | 2 | 2004-04-27 11:36 |
| CommConnection does not work with Series 60 SDK, but works in JWT | jackiechan2001 | Mobile Java Tools & SDKs | 1 | 2004-02-04 10:07 |
| Does SDK v2.0 work on Series60 V6.1? | liying | Symbian Tools & SDKs | 3 | 2004-02-02 09:57 |
| does irda function work with the emulator ? | IGhost | General Symbian C++ | 0 | 2002-12-07 18:43 |
| 8310 Simulator doesn't work | DickJones | General Browsing | 1 | 2002-11-11 13:55 |