Comment 5 for bug 1630399

Revision history for this message
Devid Antonio Filoni (d.filoni) wrote :

I tested these packages using ~d.filoni/telegram-app/audio_receiving_and_sending telegram-app branch (stable enough), it doesn't work without opusdec support. The recorder settings are declared in the following code (telegram/app/qml/components/AudioRecordingBar.qml):

    AudioEncoderSettings {
        id: audioEncoderSettings
        codec: "audio/x-opus"
        sampleRate: 16000
        channelCount: 1
    }

The AudioEncoderSettings component is provided by AsemanAudioEncoderSettings C++ class (parent class: QAudioEncoderSettings). The recorder component is provided by AsemanAudioRecorder class which internally uses QAudioRecorder. Aseman class files can be found in telegram/app/asemantools/ directory.