@hoanghong/speaking-angular 0.4.2 → 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.
Files changed (3) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/README.md +11 -17
  3. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.4.3
2
+
3
+ - Remove service addresses from public integration examples; no runtime changes.
4
+
1
5
  ## 0.4.2
2
6
 
3
7
  - Simplify public integration documentation; no runtime changes.
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.2.tgz ./vendor/hoanghong-speaking-angular-0.4.2.tgz
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.2 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.2 lên registry. Các tính năng nhận dạng cũ vẫn dùng được.
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.2)
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. Endpoint public `/sdk/v1/pronunciation-assessments` và model phải
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
- Test server riêng qua `provideSpeakingGateway({baseUrl: 'https://YOUR_TEST_GATEWAY'})`;
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,17 +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
- ## Application key and service URL
160
+ ## Application key
162
161
 
163
- Pass the application key provided by FSEL as `appKey`. Quotas and key status are
164
- managed by the service. App keys identify an application and are visible in
165
- browser/mobile applications.
166
-
167
- The default service is https://ai-service.fsel.edu.vn/sdk. For a private deployment,
168
- set `baseUrl` to the absolute /sdk endpoint supplied by your service operator.
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.
169
165
 
170
166
  ```ts
171
- provideSpeakingApp({ appKey: environment.speakingAppKey,
172
- baseUrl: environment.speakingServiceUrl });
173
- // Local: speakingServiceUrl = 'http://127.0.0.1:8001/sdk'
167
+ provideSpeakingApp({ appKey: environment.speakingAppKey });
174
168
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hoanghong/speaking-angular",
3
- "version": "0.4.2",
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.2",
14
+ "@hoanghong/speaking-core": "^0.4.3",
15
15
  "tslib": "^2.3.0"
16
16
  },
17
17
  "publishConfig": {