diff --git a/electron/main/index.ts b/electron/main/index.ts
index b9fbadc..2409d2b 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -184,8 +184,8 @@ ipcMain.handle("edgeApi", async (event, ssml) => {
});
ipcMain.handle("azureApi", async (event, ssml, key, region) => {
- const res = azureApi(ssml, key, region)
- return res;
+ const res = azureApi(ssml, key, region)
+ return res;
});
ipcMain.handle("openFolderSelector", async (event) => {
diff --git a/electron/utils/azure-api.ts b/electron/utils/azure-api.ts
index 53d68b7..0706372 100644
--- a/electron/utils/azure-api.ts
+++ b/electron/utils/azure-api.ts
@@ -1,5 +1,5 @@
import logger from "../utils/log";
-var sdk = require("microsoft-cognitiveservices-speech-sdk");
+import * as sdk from "microsoft-cognitiveservices-speech-sdk";
const azureApi = (ssml: string, key: string, region: string) => {
const speechConfig = sdk.SpeechConfig.fromSubscription(key, region);
diff --git a/index.html b/index.html
index 275b440..18c7e48 100644
--- a/index.html
+++ b/index.html
@@ -4,7 +4,9 @@
-
+
+
+
Vite App
diff --git a/package-lock.json b/package-lock.json
index 7617c95..5ac784d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,7 +23,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.3",
- "electron": "^19.0.8",
+ "electron": "^19.1.9",
"electron-builder": "^23.1.0",
"typescript": "^4.7.4",
"vite": "^2.9.13",
@@ -1857,9 +1857,9 @@
}
},
"node_modules/electron": {
- "version": "19.0.9",
- "resolved": "https://registry.npmjs.org/electron/-/electron-19.0.9.tgz",
- "integrity": "sha512-ooEwrv8Y7NSzdhKcl6kPCYecnzcg5nFWuS5ryG+VFH3MMBR8zXh9nW2wLsZrBz6OGUxXrcc5BKBC7dA8C6RhGQ==",
+ "version": "19.1.9",
+ "resolved": "https://registry.npmjs.org/electron/-/electron-19.1.9.tgz",
+ "integrity": "sha512-XT5LkTzIHB+ZtD3dTmNnKjVBWrDWReCKt9G1uAFLz6uJMEVcIUiYO+fph5pLXETiBw/QZBx8egduMEfIccLx+g==",
"dev": true,
"hasInstallScript": true,
"dependencies": {
@@ -6312,9 +6312,9 @@
}
},
"electron": {
- "version": "19.0.9",
- "resolved": "https://registry.npmjs.org/electron/-/electron-19.0.9.tgz",
- "integrity": "sha512-ooEwrv8Y7NSzdhKcl6kPCYecnzcg5nFWuS5ryG+VFH3MMBR8zXh9nW2wLsZrBz6OGUxXrcc5BKBC7dA8C6RhGQ==",
+ "version": "19.1.9",
+ "resolved": "https://registry.npmjs.org/electron/-/electron-19.1.9.tgz",
+ "integrity": "sha512-XT5LkTzIHB+ZtD3dTmNnKjVBWrDWReCKt9G1uAFLz6uJMEVcIUiYO+fph5pLXETiBw/QZBx8egduMEfIccLx+g==",
"dev": true,
"requires": {
"@electron/get": "^1.14.1",
diff --git a/package.json b/package.json
index ce63dc4..fdfd346 100644
--- a/package.json
+++ b/package.json
@@ -15,7 +15,7 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.3",
- "electron": "^19.0.8",
+ "electron": "^19.1.9",
"electron-builder": "^23.1.0",
"typescript": "^4.7.4",
"vite": "^2.9.13",
@@ -47,4 +47,4 @@
"vue-i18n": "^9.6.5",
"ws": "^8.13.0"
}
-}
+}
\ No newline at end of file
diff --git a/src/assets/i18n/i18n.ts b/src/assets/i18n/i18n.ts
index f1117ba..b352ea6 100644
--- a/src/assets/i18n/i18n.ts
+++ b/src/assets/i18n/i18n.ts
@@ -1,4 +1,4 @@
-// src/i18n.js
+// src/assets/i18n/i18n.ts
import { createI18n } from 'vue-i18n';
const messages = {
@@ -42,6 +42,17 @@ const messages = {
configFile: 'Configuration File',
openLogs: 'Open Logs',
clearLogs: 'Clear Logs',
+ yes: 'Yes',
+ no: 'No',
+ serviceRegionPlaceHolder: "Fill in the service region, such as: westus",
+ confirm: 'OK',
+ language: 'Language',
+ voice: 'Voice',
+ style: 'Style',
+ role: 'Role',
+ speed: 'Speed',
+ pitch: 'Pitch',
+ remove: 'Remove',
// Otras traducciones...
},
donate: {
@@ -318,7 +329,7 @@ const messages = {
echnologiesUsed: "Language technologies used",
InPreview: "Language in preview",
},
- initialLocalStore:{
+ initialLocalStore: {
audition: "If you think this project is good, Star, Fork and PR are welcome. Your Star is the best encouragement to the author."
}
},
@@ -374,6 +385,17 @@ const messages = {
configFile: 'Archivo de Configuración',
openLogs: 'Abrir Registros',
clearLogs: 'Limpiar Registros',
+ yes: 'Sí',
+ no: 'No',
+ serviceRegionPlaceHolder: "Complete la región de servicio, como por ejemplo: westus",
+ confirm: 'OK',
+ language: 'Idioma',
+ voice: 'Voz',
+ style: 'Estilo',
+ role: 'Rol',
+ speed: 'Velocidad',
+ pitch: 'Tono',
+ remove: 'Eliminar',
// Otras traducciones...
},
footer: {
@@ -433,6 +455,7 @@ const messages = {
fileName: "Nombre de Archivo",
filePath: "Ruta de Archivo",
fileSize: "Conteo de Palabras",
+ fileFormatTip: "El formato de texto: *.txt",
status: "Estado",
ready: "Listo",
remove: "Eliminar",
@@ -633,8 +656,8 @@ const messages = {
esource: "Recurso de idioma",
echnologiesUsed: "Tecnologías lingüísticas utilizadas",
InPreview: "Idioma en vista previa",
- },
- initialLocalStore:{
+ },
+ initialLocalStore: {
audition: "Si piensas que este proyecto es bueno, Star, Fork y PR son bienvenidos. Tu Star es el mejor ánimo para el autor."
}
},
@@ -678,6 +701,17 @@ const messages = {
configFile: '配置文件',
openLogs: '打开日志',
clearLogs: '清理日志',
+ yes: '是',
+ no: '否',
+ serviceRegionPlaceHolder: "请填写ServiceRegion,如:westus",
+ confirm: '确认',
+ language: '语言',
+ voice: '语音',
+ style: '风格',
+ role: '角色',
+ speed: '语速',
+ pitch: '音调',
+ remove: '删除',
// Otras traducciones...
},
donate: {
@@ -749,6 +783,7 @@ const messages = {
fileName: "文件名",
filePath: "文件路径",
fileSize: "字数统计",
+ fileFormatTip: "文本格式:*.txt",
status: "状态",
ready: "就绪",
remove: "移除",
@@ -951,8 +986,8 @@ const messages = {
echnologiesUsed: "使用的语言技术",
InPreview: "预览中的语言",
},
- initialLocalStore:{
- audition: "如果你觉得这个项目还不错, 欢迎Star、Fork和PR。你的Star是对作者最好的鼓励。"
+ initialLocalStore: {
+ audition: "如果你觉得这个项目还不错, 欢迎Star、Fork和PR。你的Star是对作者最好的鼓励。"
}
},
@@ -962,8 +997,13 @@ const messages = {
const i18n = createI18n({
legacy: false, // Usa la Composition API
locale: 'es', // Idioma por defecto
- fallbackLocale: 'es', // Idioma de reserva
+ fallbackLocale: 'en', // Idioma de reserva
messages,
});
+// const i18nLegacy = createI18n({
+// locale: 'es', // Idioma por defecto
+// fallbackLocale: 'en', // Idioma de reserva
+// messages,
+// });
export default i18n;
diff --git a/src/components/aside/Aside.vue b/src/components/aside/Aside.vue
index 19efa8d..f30b8bf 100644
--- a/src/components/aside/Aside.vue
+++ b/src/components/aside/Aside.vue
@@ -15,7 +15,7 @@
- {{ t('aside.setting') }}
+ {{ t('aside.settings') }}
@@ -30,9 +30,9 @@
import { useTtsStore } from "@/store/store";
import { storeToRefs } from "pinia";
import { useI18n } from 'vue-i18n';
-const { t } = useI18n();
import Version from "./Version.vue";
+const { t } = useI18n();
const ttsStore = useTtsStore();
const { page, config } = storeToRefs(ttsStore);
diff --git a/src/components/configpage/BiliBtn.vue b/src/components/configpage/BiliBtn.vue
index ab28cd5..2c48a18 100644
--- a/src/components/configpage/BiliBtn.vue
+++ b/src/components/configpage/BiliBtn.vue
@@ -12,8 +12,8 @@