@hoanghong/speaking-angular 0.4.1 → 0.4.3
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 +9 -1
- package/README.md +11 -19
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
+
## 0.4.3
|
|
2
|
+
|
|
3
|
+
- Remove service addresses from public integration examples; no runtime changes.
|
|
4
|
+
|
|
5
|
+
## 0.4.2
|
|
6
|
+
|
|
7
|
+
- Simplify public integration documentation; no runtime changes.
|
|
8
|
+
|
|
1
9
|
# 0.4.1
|
|
2
10
|
|
|
3
|
-
-
|
|
11
|
+
- Application keys support quota updates, rotation and revocation.
|
|
4
12
|
- Optional public-service baseUrl for private deployments and local integration.
|
|
5
13
|
- Includes microphone selection and realtime audio backpressure fixes (web SDK).
|
|
6
14
|
|
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.4.
|
|
8
|
+
npm install ./vendor/hoanghong-speaking-core-0.4.3.tgz ./vendor/hoanghong-speaking-angular-0.4.3.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.4.
|
|
14
|
-
Chưa publish 0.4.
|
|
13
|
+
Bản 0.4.3 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.4.3 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.4.
|
|
16
|
+
## Đánh giá phát âm tiếng Anh Mỹ (0.4.3)
|
|
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:
|
|
@@ -40,10 +40,9 @@ Thêm `signal: controller.signal` để hủy request. Hàm reject khi lỗi; UI
|
|
|
40
40
|
Kết quả có timestamp, âm thiếu/thừa/thay thế, formant/pitch/intensity/PSD và warnings.
|
|
41
41
|
|
|
42
42
|
Dùng `provideSpeakingApp` hiện có nếu có appKey. SDK tự cấp phiên riêng cho mỗi lần đánh giá,
|
|
43
|
-
không nhập service token.
|
|
43
|
+
không nhập service token. Dịch vụ đánh giá phát âm và model phải
|
|
44
44
|
được triển khai trước; 404/503 nghĩa là server chưa sẵn sàng. Bộ cài không triển khai server.
|
|
45
|
-
|
|
46
|
-
gateway phải chuyển tiếp endpoint và giữ service credential ở backend, không đưa vào app.
|
|
45
|
+
Không đưa service credential vào ứng dụng.
|
|
47
46
|
|
|
48
47
|
## 2. Thêm component — ví dụ đầy đủ
|
|
49
48
|
|
|
@@ -158,19 +157,12 @@ Dịch vụ public tự cấp phiên ngắn hạn. Mặc định server giới h
|
|
|
158
157
|
API thấp của 0.2 vẫn có sẵn cho tích hợp tùy chỉnh; không cần dùng trong luồng trên. Microphone thiết bị và khả năng truy cập mạng cần kiểm tra trong ứng dụng triển khai thực tế.
|
|
159
158
|
|
|
160
159
|
|
|
161
|
-
##
|
|
160
|
+
## Application key
|
|
162
161
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
sessions are also checked against key state. App keys identify quota; they do not
|
|
167
|
-
grant CMS administrator access and are visible in browser/mobile applications.
|
|
168
|
-
|
|
169
|
-
The hosted default remains https://ai-service.fsel.edu.vn/sdk. A custom deployment
|
|
170
|
-
can set `baseUrl` to its absolute /sdk endpoint (never /admin/api).
|
|
162
|
+
Pass the application key provided by FSEL as `appKey`. The SDK handles service
|
|
163
|
+
connections automatically. Quotas and key status are managed by the service.
|
|
164
|
+
App keys identify an application and are visible in browser/mobile applications.
|
|
171
165
|
|
|
172
166
|
```ts
|
|
173
|
-
provideSpeakingApp({ appKey: environment.speakingAppKey
|
|
174
|
-
baseUrl: environment.speakingServiceUrl });
|
|
175
|
-
// Local: speakingServiceUrl = 'http://127.0.0.1:8001/sdk'
|
|
167
|
+
provideSpeakingApp({ appKey: environment.speakingAppKey });
|
|
176
168
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoanghong/speaking-angular",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
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.4.
|
|
14
|
+
"@hoanghong/speaking-core": "^0.4.3",
|
|
15
15
|
"tslib": "^2.3.0"
|
|
16
16
|
},
|
|
17
17
|
"publishConfig": {
|