Add read_wav and list_wav_info support#406
Conversation
This PR adds read_wav and list_wav_info support so that it is possible to read wav file into a tensor. Since WAV file is splittable, read_wav could take a start and count parameter so that only a slice of the wav file is read. This is also part of the effort to rework on Dataset to move to primitive ops. See See 382 and 366 for related discussions. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
/cc @faroit for reading a chunk of WAV file. You can use Note start stand for The total number of samples in WAV could be obtained through: The dtype could be I tried to see if I could also add |
|
@yongtang This is great!
or to set the end sample in samples
|
|
@yongtang before I try it: is the wavdataset form this PR compatible to the tf 2.x beta? |
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
|
Looks great, thanks |
* Add read_wav and list_wav_info support This PR adds read_wav and list_wav_info support so that it is possible to read wav file into a tensor. Since WAV file is splittable, read_wav could take a start and count parameter so that only a slice of the wav file is read. This is also part of the effort to rework on Dataset to move to primitive ops. See See 382 and 366 for related discussions. Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Rename start, count to start, stop Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This PR adds read_wav and list_wav_info support so that it is possible to read wav file into a tensor.
Since WAV file is splittable, read_wav could take a start and count parameter so that only a slice of the wav file is read.
Read a chunk of the wav file is related to #49 (comment)
This is also part of the effort to rework on Dataset to move to primitive ops. See See #382 and #366 for related discussions.
Signed-off-by: Yong Tang yong.tang.github@outlook.com