timetable to wav file

4 Ansichten (letzte 30 Tage)
Mike Lynch
Mike Lynch am 19 Feb. 2021
Kommentiert: Star Strider am 20 Feb. 2021
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?

Akzeptierte Antwort

Star Strider
Star Strider am 19 Feb. 2021
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 Kommentare
Mike Lynch
Mike Lynch am 20 Feb. 2021
I think this works:
To write timetable 'B' to wav file 'C.wav'
>> audiowrite('C.wav',B.data,fs)
Star Strider
Star Strider am 20 Feb. 2021
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.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Data Type Conversion finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by