ms-types 0.0.56 → 0.0.57

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 (2) hide show
  1. package/package.json +1 -1
  2. package/types/tts.d.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ms-types",
3
- "version": "0.0.56",
3
+ "version": "0.0.57",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "publishConfig": {
package/types/tts.d.ts CHANGED
@@ -81,7 +81,7 @@ declare namespace tts {
81
81
  * @example
82
82
  * const voices = tts.getAvailableVoices();
83
83
  * voices.forEach(voice => {
84
- * logger.info(`语音: ${voice.name}, 语言: ${voice.language}, 标识符: ${voice.identifier}`);
84
+ * logger.info(`语音: ${voice.name}, 语言: ${voice.language}, 标识符: ${voice.identifier}, 质量: ${voice.quality}`);
85
85
  * });
86
86
  */
87
87
  function getAvailableVoices(): VoiceInfo[];
@@ -91,7 +91,7 @@ declare namespace tts {
91
91
  * @param voiceIdentifier 语音标识符
92
92
  * @returns 是否设置成功
93
93
  * @example
94
- * const success = tts.setVoice("com.apple.ttsbundle.Samantha-compact");
94
+ * const success = tts.setVoice("com.apple.ttsbundle.siri_Yu-shu_zh-CN_compact");
95
95
  * if (success) {
96
96
  * logger.info("语音设置成功");
97
97
  * }