Skip to content

Conversation

@dm3ch
Copy link

@dm3ch dm3ch commented Jun 4, 2022

It's a very naive attempt to fix a bug with AirPods (24kHZ sample rate) recorded voice messages.
I just added "resampling" code similar to what it's already there for 16kHZ. Now in my self-built version of Telegram client, I haven't got a speedup of recording and voice pitch.

Actually, it would be better to write universal re-sampling code, but I'm pretty bad in audio and in swift to do it myself.
During the research I also found that in iOS client (https://github.com/TelegramMessenger/Telegram-iOS/blob/702f2547830ca406ce41081ea4170f24533f9a01/submodules/TelegramUI/Sources/ManagedAudioRecorder.swift ) there's pretty similar part of code for audio recording but it doesn't have transcoding and it works great with AirPods, actually I don't know why, but it's too much differences to easily port it to this project for me.

#112 #590 #692

@CLAassistant
Copy link

CLAassistant commented Jun 4, 2022

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ dm3ch
❌ Mike Renoir
❌ overtake


Mike Renoir seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@dm3ch dm3ch force-pushed the fix-airpods-recording branch from 2765252 to 854ec94 Compare June 4, 2022 00:38
@dm3ch
Copy link
Author

dm3ch commented Jun 21, 2022

@overtake Sorry for the mention, but maybe you can take a look at this PR. The problem with airpods is very annoying for me and some other users.

@overtake
Copy link
Owner

overtake commented Dec 30, 2022

i didn't notice this PR. Sorry. anyway. fixed. thanks.

i fixed in the same way

@DeFiYaco
Copy link

@overtake How to know when this will be released on the app store? It still does not work for me with the app store build.

@overtake
Copy link
Owner

@overtake How to know when this will be released on the app store? It still does not work for me with the app store build.

i will send to review today. i bet on weekends or next week.

you also can switch to stable version macos.telegram.org. 9.3 coming today.

@coldvalsidalv
Copy link

Hi @overtake

Do you happen to have any updates on this PR? The bug still occurs.

@overtake overtake force-pushed the master branch 3 times, most recently from 9aa8690 to 579cebb Compare September 22, 2025 14:14
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

Successfully merging this pull request may close these issues.

6 participants