omz / Pythonista-Issues

Issue tracker for Pythonista (iOS)
169 stars 14 forks source link

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

Open genedodd opened 8 months ago

genedodd commented 8 months ago

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 commented 8 months ago

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.

sakurai-youhei commented 6 months ago

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