Group Abstract Group Abstract

Message Boards Message Boards

Why .wav file is not saved for some Sample Rate values?

Posted 6 years ago
3 Replies

Hi John, Many thanks for your so kind comments, I had read through the wolfram reference and relating rates it only says: "Not all codecs support arbitrary sample rates and channel specifications." That's it. Anyway, thanks and best regards.

Anonymous User
Anonymous User
Posted 6 years ago

In short I will say use a rate it "likes" do not try to "buck the system".

Are you using Win10 or Apple Mojave?

Try this. Check help on Export and .wav type. It should describe options. The options say what features the export (binary or function) supports for the given platform.

https://reference.wolfram.com/language/ref/format/WAV.html

I have not checked data rates but I know .wav is a Microsoft format that is a "stolen .au" (Sun audio) and may also have limited playback rates. You may have to check standards on Win10 .wav and assume Mathematica must follow the same limitations. Import/Export functions in Mathematica are not fully documented - the documentation would be too long.

POSTED BY: Anonymous User

I forgot to mention, that using samplerate=8000 the sound (soundtoexport ) is succesfully produced, however the line ****************************************************************************************** soundfilename = Export[StringJoin["c:/0/", "Sound", ".wav"], soundtoexport, AudioEncoding -> "Integer16", SampleRate -> samplerat] ****************************************************************************************** does not work anymore¡. and if I use samplerate = 6000 then it is succesfully produced and saved.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard