timetable to wav file

조회 수: 13 (최근 30일)
Mike Lynch
Mike Lynch 2021년 2월 19일
댓글: Star Strider 2021년 2월 20일
I am working with my sound files as timetables, but I need to convert them back to wav format when I'm done editing/analyzing. I can't convert directly using audiowrite, so I think I need to convert my timetable first?

채택된 답변

Star Strider
Star Strider 2021년 2월 19일
I never did anything similar, so this is simply the approach I’d try first.
Perhaps first timetable2table then table2array, then save the matrix as a .wav file would work.
  댓글 수: 3
Mike Lynch
Mike Lynch 2021년 2월 20일
I think this works:
To write timetable 'B' to wav file 'C.wav'
>> audiowrite('C.wav',B.data,fs)
Star Strider
Star Strider 2021년 2월 20일
The array created by table2array should simply be a numeric array. If it has an associated time vector with it, extract the column or columns that are not duration arrays, then save them.
If saving the timetable directly from the .wav file works, then go with it.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Descriptive Statistics에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by