overtake / TelegramSwift

Source code of Telegram for macos on Swift 5.0
https://macos.telegram.org
GNU General Public License v2.0
5.04k stars 853 forks source link

Voice records as 2x speed on Monterey with AirPods Pro #692

Closed CrazySky2121 closed 1 year ago

CrazySky2121 commented 2 years ago

When I using AirPods Pro with telegram on Monterey and trying to record voice - record obtained with 2x speed.

In others apps or when I using micro from MacBook everything is fine.

AlexanderSukhanov commented 2 years ago

Same for me

CrazySky2121 commented 2 years ago

@overtake Please fix

makmary170 commented 2 years ago

Same for me

malyshkin-vitali commented 2 years ago

Same for me. AirPods 3 + MacOS 12. Pls fix it.

qtist commented 2 years ago

I see a similar feature where my desktop microphone at 44.1kHz plays back slightly sped up and higher pitch, as if Telegram treats all mic devices as 48kHz whether they are or not. Perhaps there needs to be better use of CoreAudio

bastik961 commented 2 years ago

Same problem. Telegram - 8.6.228556 (AppStore). MacBook Air M1 (MacOS Monterey 12.3 (21E230)) + AirPods 2

choodique commented 2 years ago

Same problem. AirPods Pro, Apple M1m Telegram 8.6.228674 Stable, macOS 12.3.1

dm3ch commented 2 years ago

@qtist Your theory seems to be reasonable. For now, I have found two places where something similar to 48kHz is hardcoded: https://github.com/overtake/TelegramSwift/blob/13d62c1c03df7dea70bad0f395fb68115f5a0b43/Telegram-Mac/MicroListenerController.swift#L166 https://github.com/overtake/TelegramSwift/blob/fa0bfbe4daa5caa837b48653b73fcd02e85c29c3/Telegram-Mac/AudioRecorder.swift#L279

ibrahimrajabli commented 2 years ago

same with me

lotfull commented 2 years ago

Same for me. Airpods 3, Apple Macbook 16' M1 Pro, macOS Monterey 12.1, Telegram 8.8.1.232774 Stable.

dm3ch commented 2 years ago

Just found that there's another official desktop telegram application for macOS. This application is cross-platform (same for Windows, Linux, and macOS) and people in Reddit discussions wrote about 4 years ago, that some advanced macOS integration features were missing that days.

https://desktop.telegram.org/ https://github.com/telegramdesktop/tdesktop

I installed mentioned app, tested a recording from my AirPods pro and the x2 voice speed bug hasn't reproduced. 🎉

lezzowski commented 2 years ago

Same here. Airpods 2. Apple Macbook 13" M1, macOS Monterey 12.4. Telegram 8.9.234962 Anyway is this repo active?

jaczkal commented 2 years ago

I like it, conversations are now funnier. Made a good day for several people. Wanted feature 👍

MishaChernov commented 2 years ago

Same for me. Airpods 2. Apple Macbook 13" M1, macOS Monterey 12.5.1

YahiaAngelo commented 2 years ago

Same for me with AirPods 3

theimaginationless commented 2 years ago

Same for me with AirPods Pro

VitaliyR commented 2 years ago

Same for me, AirPods Pro

vFlagz commented 1 year ago

same for me, AirPods Pro 2

Profitsarts commented 1 year ago

Hi, just alt-click on the menu bar, the headphones icon, select as intput: macbook pro / Air microphone and you could send 1x audios. With the Airpods Pro 2 and Monterrey 12.6.1, yes, still bugged, faster high pitched audios.

nomadedge commented 1 year ago

Same for me. High-pitched records with increased speed. MacBook Pro M2, AirPods 3.

stlr00 commented 1 year ago

One year, still unfixed @overtake

overtake commented 1 year ago

i will check it.

VahidJbrl commented 1 year ago

same problem

overtake commented 1 year ago

should be fixed in today release (9.3). Appstore will be updated later.

VitaliyR commented 1 year ago

Can confirm fixed in 9.3.241538 Stable finally. Thanks!

CrazySky2121 commented 1 year ago

Thanks! It worked!

MishaChernov commented 1 year ago

Confirm, works fine now. Thanks