回答編集履歴
2
新しいバージョンに更新
test
CHANGED
@@ -8,12 +8,8 @@
|
|
8
8
|
|
9
9
|
def wavload(path):
|
10
10
|
|
11
|
-
data, samplerate = sf.read(path)
|
11
|
+
data, samplerate = sf.read(path, always_2d=True)
|
12
12
|
|
13
|
-
if len(data.shape) == 2:
|
14
|
-
|
15
|
-
|
13
|
+
return data[:, 0], samplerate
|
16
|
-
|
17
|
-
return data, samplerate
|
18
14
|
|
19
15
|
```
|
1
returnが重複していたのを削除
test
CHANGED
@@ -14,6 +14,6 @@
|
|
14
14
|
|
15
15
|
return data[:, 0], samplerate
|
16
16
|
|
17
|
-
return
|
17
|
+
return data, samplerate
|
18
18
|
|
19
19
|
```
|