Issues with audiorecorder function in Matlab online R2020a?

49 ビュー (過去 30 日間)
Eddy Armas
Eddy Armas 2020 年 6 月 30 日
コメント済み: Walter Roberson 2024 年 1 月 7 日
Hi. I'm using Matlab online R2020a and I have 2 microphones and 2 speakers connected in my laptop, but when I try to use audiorecorder function I received error message: "no audio input device found on this system". Are there issues with matlab online?
  3 件のコメント
akash poman
akash poman 2021 年 4 月 15 日
編集済み: Walter Roberson 2021 年 4 月 15 日
same problem
help me
Walter Roberson
Walter Roberson 2021 年 4 月 15 日
It cannot be done in MATLAB Online in any current release.

サインインしてコメントする。

回答 (3 件)

SC
SC 2020 年 7 月 1 日
  1 件のコメント
Eddy Armas
Eddy Armas 2020 年 7 月 4 日
I found that Matlab online not support audio toolbox add-on

サインインしてコメントする。


Walter Roberson
Walter Roberson 2021 年 4 月 13 日
As mentioned by @Eddy Armas
At least up to R2021a, MATLAB Online does not support audio input.
MATLAB Online does support some audio output, but only for the Chrome browser at the present time. Supported functions include sound(), soundsc(), and audioplayer()

Ali
Ali 2024 年 1 月 7 日
編集済み: Walter Roberson 2024 年 1 月 7 日
audioFilePath = 'C:\Users\YA_ATTAR_26\Documents\MATLAB\ansari1024.wav';
samplingRates = [44100, 22050, 11025, 8192, 4096, 2048, 1024];
resultsCell = cell(length(samplingRates), 4);
for i = 1:length(samplingRates)
try
[audioData, Fs] = audioread(audioFilePath);
audioResampled = resample(audioData, samplingRates(i), Fs);
disp(['Playing at Sampling Rate: ' num2str(samplingRates(i)) ' samples/sec']);
if 0.5 == (Fs / samplingRates(i)) || (Fs / samplingRates(i)) < 0.5
aliasing = 'No';
else
aliasing = 'Yes';
end
voiceQuality = input('Please provide your observation on voice quality (e.g., good, fair, poor): ', 's');
fileSizeKB = numel(audioResampled) * 16 / 8 / 1024; % Assuming 16-bit audio
% Store results in the cell array
resultsCell{i, 1} = samplingRates(i);
resultsCell{i, 2} = voiceQuality;
resultsCell{i, 3} = fileSizeKB;
resultsCell{i, 4} = aliasing;
catch ME
disp(['Error processing at sampling rate ' num2str(samplingRates(i)) ':']);
disp(ME.message);
end
end
% Display results in a table format
resultsTable = cell2table(resultsCell, 'VariableNames', {'SamplingRate', 'VoiceQuality', 'FileSizeKB', 'Aliasing'});
disp(resultsTable);
  1 件のコメント
Walter Roberson
Walter Roberson 2024 年 1 月 7 日
audioFilePath = 'C:\Users\YA_ATTAR_26\Documents\MATLAB\ansari1024.wav';
The discussion is about MATLAB Online's handling of audio. MATLAB Online cannot read files from Windows.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAudio and Video Data についてさらに検索

タグ

製品


リリース

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by