@hoanghong/speaking-angular 0.4.3 → 0.5.0
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/CHANGELOG.md +5 -0
- package/README.md +28 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -5,15 +5,15 @@ Component nhận dạng lời nói online dùng ngay. Chỉ cài package, chọn
|
|
|
5
5
|
## 1. Cài đặt
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install ./vendor/hoanghong-speaking-core-0.
|
|
8
|
+
npm install ./vendor/hoanghong-speaking-core-0.5.0.tgz ./vendor/hoanghong-speaking-angular-0.5.0.tgz
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Core được cài tự động. Với ứng dụng mới: `npx @angular/cli@18 new speaking-demo --standalone --routing=false --style=css`, rồi `cd speaking-demo` và chạy lệnh trên.
|
|
12
12
|
|
|
13
|
-
Bản 0.
|
|
14
|
-
Chưa publish 0.
|
|
13
|
+
Bản 0.5.0 là bộ cài test local: giải nén ZIP và copy hai tarball vào `vendor/` trước.
|
|
14
|
+
Chưa publish 0.5.0 lên registry. Các tính năng nhận dạng cũ vẫn dùng được.
|
|
15
15
|
|
|
16
|
-
## Đánh giá phát âm tiếng Anh Mỹ (0.
|
|
16
|
+
## Đánh giá phát âm tiếng Anh Mỹ (0.5.0)
|
|
17
17
|
|
|
18
18
|
Thêm `SpeakingService` vào `providers` của component dùng để test, import từ
|
|
19
19
|
`@hoanghong/speaking-angular`, rồi gọi trong class component:
|
|
@@ -166,3 +166,27 @@ App keys identify an application and are visible in browser/mobile applications.
|
|
|
166
166
|
```ts
|
|
167
167
|
provideSpeakingApp({ appKey: environment.speakingAppKey });
|
|
168
168
|
```
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
## Multi-criteria pronunciation diagnostics (0.5.0)
|
|
172
|
+
|
|
173
|
+
Optional `breakdown` contains accuracy, completeness, fluency, prosody, pronunciation,
|
|
174
|
+
vocabulary, grammar and topic. Each has score (0–100 or null), status
|
|
175
|
+
(estimated/unavailable), method and reason. These are local diagnostics, not Azure
|
|
176
|
+
scores or calibrated grades. Older services may omit breakdown.
|
|
177
|
+
|
|
178
|
+
- Accuracy = 100 * matches / (matches + substitutions + insertions), at phoneme level.
|
|
179
|
+
- Completeness = 100 * (reference phonemes - omissions) / reference phonemes.
|
|
180
|
+
Substitutions count as covered; this is coverage, not correctness.
|
|
181
|
+
- Fluency is an energy continuity proxy = 100 * (1 - internal pause seconds / active span).
|
|
182
|
+
20 ms RMS windows, threshold=max(0.005, 0.1*peak RMS), internal gaps >=250 ms.
|
|
183
|
+
Excludes leading/trailing silence; requires >=2 s audio and >=1 s active span.
|
|
184
|
+
Noise may inflate the value and intentional pauses may lower it; this is not VAD/native fluency.
|
|
185
|
+
- Prosody has no score. Pitch P90-P10 and standard deviation (semitones) are reported
|
|
186
|
+
with >=20 voiced frames and >=2 s audio. Variation does not imply correct intonation.
|
|
187
|
+
- Overall pronunciation and content scores remain null: no calibrated composite,
|
|
188
|
+
stress model, transcript/grammar evaluator or topic evaluator is configured.
|
|
189
|
+
|
|
190
|
+
errors counts phoneme matches/substitutions/omissions/insertions. signal.pauses are
|
|
191
|
+
acoustic intervals, not linguistic unexpected/missing breaks. Consult limitations
|
|
192
|
+
and version=local-diagnostics-v1 before interpreting estimates.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoanghong/speaking-angular",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Ready-to-use online speaking: five languages, microphone realtime and audio upload",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"sideEffects": false,
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@hoanghong/speaking-core": "^0.
|
|
14
|
+
"@hoanghong/speaking-core": "^0.5.0",
|
|
15
15
|
"tslib": "^2.3.0"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|