Discussion Overview
The discussion revolves around a MATLAB homework problem involving the importation of sound files into a program. Participants are troubleshooting issues related to audio codecs and file formats, specifically focusing on the error encountered when using the wavread function with certain sound files.
Discussion Character
- Homework-related
- Technical explanation
- Debate/contested
Main Points Raised
- One participant reports an error when attempting to read a WAV file using
wavread, indicating that the data compression format is not supported.
- Another participant suggests checking for the presence of audio codec #85 as a potential solution to the error.
- Subsequent replies indicate that even after installing the codec, the error persists, leading to speculation about installation issues or MATLAB's compatibility with the codec.
- Participants discuss the possibility that the audio file may be in a format that
wavread does not expect, suggesting that the number of channels or the format of the recorded data could be problematic.
- One participant proposes converting the WAV file to a different format to test if the issue lies with the file format itself.
- Another participant shares a workaround involving converting the WAV file to a PCM format using Microsoft Sound Recorder or a third-party converter, stating that the original file's compression may be incompatible with
wavread.
- There are mentions of trying different audio files and formats, including .AU files, but encountering similar issues with unrecognized data.
- One participant notes that after converting the file online, they still receive numerical data when attempting to read the file, prompting questions about the command used to play the audio.
- Another participant advises on how to visualize the data to determine if it represents a voice signal and inquires about the command being used to play the audio.
Areas of Agreement / Disagreement
Participants express a range of views regarding the source of the problem, with some attributing it to codec issues, while others suggest it may be related to the file format or MATLAB's handling of the data. No consensus is reached on a definitive solution.
Contextual Notes
Participants mention various audio files and codecs, but there is uncertainty regarding the specific requirements for file formats and the compatibility of MATLAB with different audio codecs. The discussion includes attempts to troubleshoot installation issues and file conversions without resolving the underlying problem.
Who May Find This Useful
This discussion may be useful for MATLAB users encountering issues with importing audio files, particularly those dealing with codec compatibility and file format challenges in programming contexts.