Introduces a new `UserSettings` interface and default settings. This allows users to customize voice preferences (name, style, gender) and persona characteristics within the application. This enhances personalization and user experience by tailoring interactions to individual needs and preferences.
48 lines
974 B
TypeScript
48 lines
974 B
TypeScript
|
|
export interface Scenario {
|
|
id: string;
|
|
title: string;
|
|
description: string;
|
|
category: 'Social Anxiety' | 'Workplace' | 'Relationships' | 'Self-Talk';
|
|
difficulty: 'Beginner' | 'Intermediate' | 'Advanced';
|
|
systemInstruction: string;
|
|
initialMessage: string;
|
|
cbtFocus: string[];
|
|
}
|
|
|
|
export interface UserSettings {
|
|
voiceName: 'Puck' | 'Charon' | 'Kore' | 'Fenrir' | 'Zephyr';
|
|
vocalStyle: string;
|
|
genderPreference: 'Male' | 'Female' | 'Neutral';
|
|
}
|
|
|
|
export interface Message {
|
|
id: string;
|
|
role: 'user' | 'model' | 'system';
|
|
text: string;
|
|
timestamp: Date;
|
|
isAnalysis?: boolean;
|
|
}
|
|
|
|
export type SessionMode = 'text' | 'voice';
|
|
|
|
export interface AudioConfig {
|
|
sampleRate: number;
|
|
}
|
|
|
|
export interface AnalysisResult {
|
|
analysis: {
|
|
distortions: string[];
|
|
isAdaptive: boolean;
|
|
evidence: string;
|
|
};
|
|
rating: {
|
|
score: number;
|
|
reason: string;
|
|
};
|
|
suggestions: {
|
|
alternativeThought: string;
|
|
behavioralStep: string;
|
|
};
|
|
}
|