Decode a base64 code into a audio file and save it
37 views (last 30 days)
Show older comments
Hello,
I'm trying to create a automated decoder for a large scale csv file containing bunch of audio base64 code.
However, I tried to use matlab.net.base64decode()function in matlab, and after saving it to file as a wav with sample rate at 48000, the wav audio is just high pitch noise. Could someone help me out to make it work? Thank you!
My code is below:
wav_data = matlab.net.base64decode(char(audio_data));
audiowrite(filename,wav_data,48000);
audio_data is the base64 code, here is one of it:
GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQRChYECGFOAZwH/////////FUmpZpkq17GDD0JATYCGQ2hyb21lV0GGQ2hyb21lFlSua7+uvdeBAXPFh/4b0xRFNCuDgQKGhkFfT1BVU2Oik09wdXNIZWFkAQEAAIC7AAAAAADhjbWERzuAAJ+BAWJkgSAfQ7Z1Af/////////ngQCjQT6BAACAe4NmYACwayEzoysrJxevaDPnBHOgz/Qb2boczrjmMc8qmrf0nO4jBCpRTPNCiIZebgPAY4ON3Dz+0SPtS5y/J41YabPVyJpa2c9tVLng4Nauvc2N+Q3OT0NubdBhiIDKAysygan0NJEziQ8YvhGlYyrtZPzSp2eZ8hr8v2vrfPVAtknlrv2rY/DoaLMar0gLZ1SoKDp2ufTM9CiJj8perKTmDBwjaiJMqdlNTCs5Huo2uSxL2w/8P1yZLPvG+m0l8idBZ1kat/R7aRJXm5Kp8ZgJHbivvqi+xXrn3DXtTzCy9Bm9qbyfzni8zHgZ4XALsRGS1Ks875M1jxysnP2qQp5NbJlTn5MH7TV5CdmUI1XFq9lJ7qTbWgXEgDVcCDh3LlhGNeI4WTC4/QPH8lnstuO0c+Rx4LCSM1ajQTaBADuAe4NlZhI9viewqWEpEE5Pp/A1sEA9FPvRT+EuMczouv9fJERz+c7ZxZyxnKAomF9lCzRKCLz40DeuCRGOQ61RtM8rUVrVhN1Cn1ONLmlqpQ9wSeWfz6aJ293laYo9IWUjfkxgq+/f5JpLEj3pHTm6Qj/1VHPtyiY9rWyVep6WAHLchL+KnF+EfxyPvAo9F+qDQNIkjIEH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4iO6ZpO0sMVUrnn8KOuJDJesfZ28mndU5BUO7+pOD6WMr/G5nvyRgAfZwno0FBgQd/gHuDZ2oYAsKOAg/vYtaeRcI6dSZMpd/DO2Fzy97pPX+GevD5NiIzYSA8vKdyooZkCESNnLl3xdVI3csvIL14XXPCg67eMfg8jll7ajfhYtLxgWvjtimZ0O10kV7DhbXRTh8C/a+xcXS1ICIVFGzVassstdPnIhRipx74Fd4KdsCEiERQRJgmBHMeiBYB5H2RfuMWSYCh13u+3RIlYetipw4YwqZwrAq/Wy387GHHOmz8eR0VUhD5HNdHYTFcrDIGIs4fCZ/wGa2WMsL5VF8jCs2Q0IgS1hI9ufw31ZcZ5n7E5MUVO/KFWvvzd2NeCSQuYvptnYGsx2JkygW27AtuIPjN88zMa+CJIyB95MEfKCtYJlpUQI6Pnasjn/s/FgYvBOJYkuJICRUSUZYbhasZJVh6Y+cAk1QsrRWj2nrW
0 Comments
Accepted Answer
Jan
on 15 Feb 2023
Edited: Jan
on 15 Feb 2023
Look into the output of the base64 decoding. You find these characters on the top:
.E...B...B...B...B...B..
webmB...B....S.g........
.I.f.*....B@M..ChromeWA.
Chrome.T.k......s......E
4+.....A_OPUSc..OpusHead
This is not a binary sound signal, but an encoded webm file. Saving as at WAV file does not work. Try:
datastream = matlab.net.base64decode(char(audio_data));
[fid, msg] = fopen('YouFile.webm', 'w');
assert(fid > 0, msg);
fwrite(fid, datastream, 'uint8');
fclose(fid);
Now play the webm file in a browser, VLC or the WIndows Media Player.
2 Comments
More Answers (0)
See Also
Categories
Find more on Audio and Video Data in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!