mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
feat: Enhance TTS functionality with Azure support and UI improvements
- Updated component declarations to include new Naive UI components. - Refactored environment variable access to use import.meta.env. - Added TTS_API_URL constant for Azure TTS integration. - Expanded SpeechSettings interface to support Azure voice and language options. - Implemented Azure TTS voice selection and loading mechanism in ReadDanmaku.vue. - Added loading timeout for audio playback and improved error handling. - Enhanced UI to allow users to select Azure voices and configure speech settings.
This commit is contained in:
@@ -19,7 +19,7 @@ export const THINGS_URL = `${FILE_BASE_URL}/things/`
|
||||
export const apiFail = ref(false)
|
||||
|
||||
export const BASE_URL
|
||||
= process.env.NODE_ENV === 'development'
|
||||
= import.meta.env.NODE_ENV === 'development'
|
||||
? debugAPI
|
||||
: apiFail.value
|
||||
? failoverAPI
|
||||
@@ -27,7 +27,7 @@ export const BASE_URL
|
||||
export const BASE_API_URL = `${BASE_URL}api/`
|
||||
export const FETCH_API = 'https://fetch.vtsuru.live/'
|
||||
export const BASE_HUB_URL
|
||||
= `${process.env.NODE_ENV === 'development'
|
||||
= `${import.meta.env.NODE_ENV === 'development'
|
||||
? debugAPI
|
||||
: apiFail.value
|
||||
? failoverAPI
|
||||
@@ -65,6 +65,7 @@ export const CHECKIN_API_URL = `${BASE_API_URL}checkin/`
|
||||
export const USER_CONFIG_API_URL = `${BASE_API_URL}user-config/`
|
||||
export const FILE_API_URL = `${BASE_API_URL}files/`
|
||||
export const VOTE_API_URL = `${BASE_API_URL}vote/`
|
||||
export const TTS_API_URL = `${BASE_API_URL}tts/`
|
||||
|
||||
export interface TemplateMapType {
|
||||
[key: string]: {
|
||||
|
||||
Reference in New Issue
Block a user