Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-225

QAudirecorder does not record proper .wav file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 1.2.0
    • PySide
    • None
    • windows7, Qt 5.2

    Description

      Hey, i did recording from microphone using qt in .wav file.
      i am able to play this file in media playe.but when i added this file in matlab for wavread this is giving a error invalid chunk size …..and when i calculated chunk size and subchuk size of .wav file.it is not correct.it is a qt bug. this is my qt code.

      audioRecorder->setAudioInput(audioRecorder->audioInput());
      audioRecorder->setOutputLocation(QUrl::fromLocalFile("C:/Users/Kaptron3/Desktop/Sound.wav"));

      QAudioEncoderSettings audioSettings;
      audioSettings.setCodec("audio/x-wav");
      audioSettings.setSampleRate(16000);

      audioSettings.setBitRate(16);
      audioSettings.setQuality(QMultimedia::EncodingQuality(16000));
      audioSettings.setEncodingMode(QMultimedia::ConstantQualityEncoding);

      audioRecorder>setEncodingSettings(audioSettings,QVideoEncoderSettings(),
      "audio/x-wav");

      audioRecorder->record();

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            prabhatjha prabhat jha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes