Commit 693418a
* Update: add using pcm bytes
* re make style
* Update src/datasets/features/audio.py
Co-authored-by: Quentin Lhoest <[email protected]>
* Update src/datasets/features/audio.py
Co-authored-by: Quentin Lhoest <[email protected]>
* Update src/datasets/features/audio.py
Co-authored-by: Quentin Lhoest <[email protected]>
* delete: wrong comment
* Update: sampling_rate usage & test source update
* Update: pcm2wav bytes don`t need path
we can open up soundfile lib
Co-authored-by: Quentin Lhoest <[email protected]>
* Update: we can get wav style bytes to pcm, so we can read to soundfile lib
* Update: pcm doesn`t use path, so check 'None'
* Update: not used self`s sampling_rate
self.sampling_rate is for decode. so, we have to get value`s sampling_rate
Co-authored-by: Quentin Lhoest <[email protected]>
* Update: add sampling_rate
we have to know sampling_rate in input values variable
Co-authored-by: Quentin Lhoest <[email protected]>
* Update: sampling_rate variable
Co-authored-by: Quentin Lhoest <[email protected]>
* Update tests/features/test_audio.py
Co-authored-by: Quentin Lhoest <[email protected]>
* Update tests/features/test_audio.py
Co-authored-by: Quentin Lhoest <[email protected]>
* Update tests/features/test_audio.py
Co-authored-by: Quentin Lhoest <[email protected]>
* Update: replace get sampling_rate
* Apply suggestions from code review
Co-authored-by: Quentin Lhoest <[email protected]>
1 parent 2f1c41a commit 693418a
File tree
3 files changed
+49
-1
lines changed- src/datasets/features
- tests/features
- data
3 files changed
+49
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
95 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
96 | 112 | | |
97 | 113 | | |
98 | 114 | | |
| |||
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
81 | 101 | | |
82 | 102 | | |
83 | 103 | | |
| |||
126 | 146 | | |
127 | 147 | | |
128 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
129 | 161 | | |
130 | 162 | | |
131 | 163 | | |
| |||
0 commit comments