Files
News-reader-pro/constants.ts
Anthony 43435166f8 feat: Update dependencies and add new voice
- 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.
2025-11-19 20:46:02 +08:00

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;