Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Can’t record my voice after upgrading to 25.7.3 #4225

@abdnh

Description

@abdnh

After upgrading 25.7.3, I can’t record my voice when learning, with the following message,
Unable to record. Please ensure a microphone is connected, and Anki has permission to use the microphone. If other programs are using your microphone, closing them may help.
Original error: ⁨’NoneType’ object has no attribute 'readyRead’⁩
image630×204 11.4 KB

Originally reported on https://forums.ankiweb.net/t/cant-record-my-voice-after-upgrading-to-25-7-3/64453

I can reproduce this on Windows. Setting channel count to 2 is a quick fix (Qt considers the QAudioFormat object unsupported otherwise). The root cause of this is a change in Qt: the QAudioDevice::minimumChannelCount() method now returns 2. Try:

from PyQt6.QtMultimedia import  QMediaDevices

device = QMediaDevices.defaultAudioInput()
print(device.minimumChannelCount())

Metadata

Metadata

Assignees

No one assigned

    Labels

    qtBug in the Qt5/Qt6 toolkit Anki uses

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions