Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
genedodd opened this issue Mar 14, 2024 · 2 comments
Open

Comments

@genedodd
Copy link

genedodd commented Mar 14, 2024

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
Copy link
Author

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants