mirror of
https://github.com/Tony0410/News-reader-pro.git
synced 2026-05-24 21:31:44 +08:00
- Updates project dependencies to latest versions for improved performance and security. - Adds a new voice option, 'Aoede', to the available voices. - Modifies the voice change handler to force re-generation of future audio segments for the selected article. - Updates Vite configuration to align with newer Vite versions and load environment variables correctly. - Adjusts TypeScript configuration for a more modern setup. - Removes unnecessary configuration from Nginx file.
18 lines
645 B
TypeScript
18 lines
645 B
TypeScript
|
|
import { VoiceName } from './types';
|
|
|
|
export const AVAILABLE_VOICES = [
|
|
{ name: VoiceName.Puck, label: 'Puck (Standard American, Male)' },
|
|
{ name: VoiceName.Charon, label: 'Charon (Deep, Authoritative Male)' },
|
|
{ name: VoiceName.Kore, label: 'Kore (Soft, Calm Female)' },
|
|
{ name: VoiceName.Fenrir, label: 'Fenrir (Mid-Atlantic/British Style, Male)' },
|
|
{ name: VoiceName.Zephyr, label: 'Zephyr (Clear, Professional Female)' },
|
|
{ name: VoiceName.Aoede, label: 'Aoede (Confident, Professional Female)' },
|
|
];
|
|
|
|
export const MIN_SPEED = 0.5;
|
|
export const MAX_SPEED = 3.5;
|
|
export const SPEED_STEP = 0.5;
|
|
|
|
export const SAMPLE_RATE = 24000;
|