Note: This started as a personal/toy project I created to ask questions to podcasts I listen to. I've made it generic so others can use it with their own audio content. Feel free to adapt it for your needs!
An MP3 to AI Chat Assistant - A configurable AI chat assistant that can be customized for your content and use case. Transform audio content into interactive, searchable conversations.
This is a demonstration project and should not be deployed to production without implementing additional security measures:
.env.example
to .env
:cp .env.example .env
.env
npm install
npm run dev
Required environment variables in your .env
file:
# Required
ANTHROPIC_API_KEY=your_api_key_here
TURSO_URL=your_turso_url_here
TURSO_AUTH_TOKEN=your_turso_auth_token_here
DEEPGRAM_API_KEY=your_deepgram_key_here
VOYAGE_API_KEY=your_voyage_key_here
The application can be customized by modifying
src/lib/config/app-config.ts
. This file contains non-sensitive
configuration options:
{
// Application name and description
app_name: 'My Custom Assistant',
app_description: 'Chat with your content using AI',
// AI Configuration
ai: {
// Available models:
// - claude-3-opus-20240229 (most capable)
// - claude-3-sonnet-20240229 (balanced)
// - claude-3-haiku-20240307 (fastest)
model: 'claude-3-haiku-20240307',
max_tokens: 1024,
// Customize the AI's behaviour
system_prompt: 'Your custom system prompt...',
// Define different response styles
style_instructions: {
normal: {
description: 'Balanced and clear responses',
instruction: 'Your custom instruction...'
},
// Add more styles as needed
}
},
// Set default response style
default_response_style: 'normal'
}
The application supports multiple response styles that can be configured:
normal
: Balanced and clear responsesconcise
: Brief and direct responsesexplanatory
: Detailed explanationsformal
: Professional and structured responsesYou can modify existing styles or add new ones in the configuration file.
.env
fileapp-config.ts
file should only contain non-sensitive
application settingsTo start the development server:
npm run dev
Visit http://localhost:5173
to see your application.
MIT