Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

Using sound.recorder causes volume of speech.say to become very low

Open genedodd opened this issue 1 year ago • 2 comments

On iPhone 11 using IOS 17.3.1 (no problem on iPad Air 3rd gen same os) using sound.recorder causes speech.say volume to decrease.

import speech import sound

speech.say('before record') record_time = 3 recorder = sound.Recorder('speech.m4a') x = input('"y" to record') if x == 'y': recorder.record(record_time) speech.say('after record')

As long as "recorder.record(record_time)" is not executed, the speech.say volume is controlled by system volume control but once it is executed, any pythonista sounds are very low. Sounds from other IOS apps are not affected. Closing and starting pythonista is required to restore regular volume for pythonista scripts.

genedodd avatar Mar 14 '24 18:03 genedodd

It makes sense that recorder.record would reduce speaker volume while recording but on the iPhone11, it seems to not restore normal volume.

I won't be using the sound.recorder method going forward so I don't need this resolved.

genedodd avatar Mar 16 '24 17:03 genedodd

I hit the same issue; iOS 17.4.1 (21E236) on iPhone 15 Pro.

sakurai-youhei avatar May 24 '24 11:05 sakurai-youhei