zann-voice 0.1.16 → 0.1.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -152,3 +152,13 @@ voice.connect({
|
|
|
152
152
|
}
|
|
153
153
|
},
|
|
154
154
|
```
|
|
155
|
+
freq[index] 代表频率区间 value 代表能量大小
|
|
156
|
+
freq[index] 的“值 = 这个频率的能量(0–255)”
|
|
157
|
+
wave[index] = 某一时间点的振幅(0~255,128为中线)
|
|
158
|
+
|
|
159
|
+
| 内容 | freq |wave |
|
|
160
|
+
| ------------- | :-----------: | :-----------: |
|
|
161
|
+
| 本质 | 频谱 | 波形 |
|
|
162
|
+
| index | 频率段 | 时间采样点 |
|
|
163
|
+
| 值 | 能量(音量强弱) | 振幅(波形) |
|
|
164
|
+
| 用途 | 柱状频谱图 | 波形 oscilloscope |
|