record sound but cant replay it in speaker
import sound import dialogs recorder = sound.Recorder('speech.m4a') #recorder.record() dialogs.alert('Recording...', '', 'Finish', hide_cancel_button=True) #recorder.stop() p=sound.Player('speech.m4a') p.play()
When I comment that record code, the sound came out from the speaker.
but when i use the record code,the player sound come from the headphone.
how can i record sound and replay it in speaker at once？