AI-RADIO / src /demo_assets.py
Nikita Makarov
updated structure
3a37184
"""Demo assets and sample data for AI Radio"""
SAMPLE_SHOW_PLAN = {
"user": "Alex",
"duration": 30,
"segments": [
{"type": "intro", "duration": 1},
{"type": "music", "genre": "pop", "duration": 3},
{"type": "news", "category": "technology", "duration": 2},
{"type": "music", "genre": "rock", "duration": 3},
{"type": "podcast", "category": "technology", "duration": 2},
{"type": "music", "genre": "pop", "duration": 3},
{"type": "story", "duration": 2},
{"type": "music", "genre": "electronic", "duration": 3},
{"type": "news", "category": "world", "duration": 2},
{"type": "music", "genre": "pop", "duration": 3},
{"type": "outro", "duration": 1}
]
}
DEMO_PREFERENCES = {
"name": "Demo User",
"favorite_genres": ["pop", "rock", "electronic"],
"interests": ["technology", "world", "science"],
"podcast_interests": ["technology", "business"],
"mood": "happy"
}
SAMPLE_COMMENTARY = [
"What a great track! This one always gets me in a good mood.",
"Here's a tune I think you'll love - perfect for your current vibe!",
"This next song is pure energy! Let's keep the good times rolling.",
"A classic that never gets old. Enjoy this one!",
"Time for some amazing music. This artist knows how to deliver!"
]
SAMPLE_INTROS = [
"Good morning, friend! Welcome to AI Radio, your personal music companion.",
"Hey there! Ready for an amazing show? We've got great music and stories lined up!",
"Welcome back to AI Radio! I've prepared something special just for you today.",
"Hello and happy listening! Let's start this show with some energy!",
"Great to have you here! Your personalized radio experience starts now!"
]
SAMPLE_OUTROS = [
"That's all for now! Thanks for listening to AI Radio. Come back soon!",
"Hope you enjoyed the show! Your next personalized experience awaits.",
"Thanks for tuning in! Until next time, keep enjoying great music!",
"What a show! Thanks for listening, and see you next time on AI Radio!",
"That's a wrap! Hope you had as much fun as I did. See you soon!"
]
SAMPLE_NEWS_SCRIPTS = [
"In tech news today, artificial intelligence continues to make headlines with new breakthroughs in natural language processing. Experts say we're entering a new era of AI capabilities.",
"The world is watching as global leaders meet to discuss climate action. New initiatives aim to accelerate the transition to renewable energy.",
"Business markets showed strong performance this week, with technology stocks leading the way. Investors remain optimistic about the sector's future.",
"In entertainment news, streaming services are revolutionizing how we consume content. New shows and movies are breaking viewership records.",
"Scientists have made an exciting discovery in deep space. The findings could reshape our understanding of the universe."
]
SAMPLE_STORIES = [
"Did you know that music has been scientifically proven to boost productivity? Studies show that listening to your favorite tunes can increase focus by up to 15%!",
"Here's a fascinating fact: The first radio broadcast happened over 100 years ago in 1920. And now, we have AI-powered personalized radio!",
"Interesting tidbit for you: Your brain releases dopamine when you listen to music you love. That's why your favorite songs make you feel so good!",
"Fun fact: The longest song ever recorded is over 13 hours long! Don't worry, our segments are much shorter.",
"Did you know podcasts got their name from iPod + broadcast? Now there are over 5 million podcasts available worldwide!"
]
def get_random_sample(sample_list):
"""Get a random sample from a list"""
import random
return random.choice(sample_list)