mirror of
https://github.com/Tony0410/News-reader-pro.git
synced 2026-05-24 21:31:44 +08:00
Sets up the foundational elements for the NewsCaster AI application. This includes: - Initializing the project with Vite and React. - Defining core types for articles and player state. - Configuring build tools and TypeScript. - Adding essential dependencies like React, Vite, and Google's Gemini API client. - Providing initial README instructions for running locally. - Setting up basic styling and structure in index.html. - Defining available voices and playback constants. - Implementing utility functions for audio handling.
15 lines
511 B
TypeScript
15 lines
511 B
TypeScript
import { VoiceName } from './types';
|
|
|
|
export const AVAILABLE_VOICES = [
|
|
{ name: VoiceName.Puck, label: 'Puck (Male, Standard)' },
|
|
{ name: VoiceName.Charon, label: 'Charon (Male, Deep)' },
|
|
{ name: VoiceName.Kore, label: 'Kore (Female, Soothing)' },
|
|
{ name: VoiceName.Fenrir, label: 'Fenrir (Male, Energetic)' },
|
|
{ name: VoiceName.Zephyr, label: 'Zephyr (Female, Clear)' },
|
|
];
|
|
|
|
export const MIN_SPEED = 0.5;
|
|
export const MAX_SPEED = 3.5;
|
|
export const SPEED_STEP = 0.5;
|
|
|
|
export const SAMPLE_RATE = 24000; |