Skip to main content

Chapter 3: Audio, Video, and Code Generation

Beyond Text and Images​

Generative AI doesn't stop at text and images. It can also create audio, video, and even computer programs!


Audio Generation​

What Can Audio AI Create?​

  1. Speech - Convert text to natural-sounding voice
  2. Music - Compose original songs and soundtracks
  3. Sound effects - Generate specific sounds
  4. Voice cloning - Replicate a voice (with permission!)

Text-to-Speech (TTS) Tools​

Convert written text into spoken words that sound natural.

ElevenLabs​

What it is: High-quality voice generation with many voice options.

Best for:

  • Audiobooks
  • Video narration
  • Podcasts
  • Multiple languages

Features:

  • Very realistic voices
  • Many built-in voices
  • Voice cloning (with consent)
  • Emotional expression

Access: elevenlabs.io (free tier available)

Other TTS Options​

  • Amazon Polly - Cloud-based, many languages
  • Google Text-to-Speech - Integrated with Google services
  • Microsoft Azure Speech - Enterprise-level features

AI Music Generation​

Create original music from text descriptions!

Suno​

What it is: AI that creates complete songs with vocals and instruments.

Best for:

  • Creating songs from text descriptions
  • Background music for content
  • Fun and experimental music creation

Example prompt:

"Create an upbeat pop song about summer adventures with female vocals"

Access: suno.ai (free tier available)

Other Music AI​

ToolBest For
AIVAClassical and film music
SoundrawRoyalty-free background music
BoomyQuick song creation

Video Generation​

What Can Video AI Create?​

  1. Text-to-video - Create videos from descriptions
  2. Video editing - AI-powered cuts and effects
  3. Animation - Generate animated content
  4. Avatar videos - AI presenters speaking your script

Major Video AI Tools​

Sora (by OpenAI)​

What it is: OpenAI's text-to-video generator that creates realistic videos.

Capabilities:

  • Create videos up to 1 minute
  • Highly realistic results
  • Complex scenes with motion
  • Various styles and subjects

Status: Limited access (as of 2024)

Runway​

What it is: Professional video AI tools for creators.

Features:

  • Text-to-video generation
  • AI video editing
  • Background removal
  • Motion tracking

Best for:

  • Professional video creators
  • Social media content
  • Film and TV production

Access: runwayml.com (limited free tier)

Pika​

What it is: User-friendly AI video generation.

Features:

  • Simple text-to-video
  • Image-to-video animation
  • Quick turnaround

Access: pika.art


Video AI Use Cases​

Use CaseExample
Social mediaCreate short videos for TikTok/Instagram
MarketingGenerate product demonstrations
EducationCreate explainer videos
EntertainmentMake concept videos and previews

Code Generation​

What Can Code AI Do?​

  1. Write code - Generate programs from descriptions
  2. Complete code - Finish code you start typing
  3. Debug - Find and fix errors
  4. Explain - Clarify what code does
  5. Translate - Convert code between languages

Major Code AI Tools​

GitHub Copilot​

What it is: AI that helps you write code in your editor.

How it works:

  1. You start typing code
  2. AI suggests completions
  3. Press Tab to accept

Best for:

  • Professional developers
  • All programming languages
  • Integration with popular editors

Cost: $10/month for individuals

Cursor​

What it is: An AI-powered code editor built for AI assistance.

Features:

  • Full AI integration
  • Chat with your codebase
  • Code generation from descriptions
  • Built on VS Code

Best for:

  • Developers who want deep AI integration
  • Working with large codebases

ChatGPT for Coding​

What it can do:

  • Write code from descriptions
  • Explain what code does
  • Debug problems
  • Answer programming questions

Example:

"Write a Python function that calculates the average of a list of numbers"

ChatGPT will write the complete function for you!


Code AI Limitations​

Important Notes for Code AI
  • Not always correct - Code may have bugs
  • Security risks - AI may suggest insecure code
  • Need verification - Always test AI-generated code
  • Context limited - May not understand your full project

Multimodal AI​

The Future is Multimodal​

Newer AI models can handle multiple types of content at once!

GPT-4 Vision:

  • Understands images AND text
  • Can describe what's in a photo
  • Answer questions about images

Gemini:

  • Processes text, images, and video
  • Can analyze what's happening in videos

What this means:

  • More versatile tools
  • Natural interactions
  • Fewer separate tools needed

The Expanding World of AI​

What's Coming Next​

AreaWhat to Expect
3D generationAI creating 3D models from text
GamingAI-generated game worlds and characters
RoboticsAI controlling physical robots
ScienceAI discovering new medicines and materials

Which Tools Should You Try?​

For Beginners​

GoalRecommended ToolCost
Try text AIChatGPT (free)Free
Create imagesBing Image CreatorFree
Make musicSunoFree tier
Create voiceElevenLabsFree tier
Learn codingChatGPT for explanationsFree

Quick Check ✓​

  1. What's the difference between TTS and music generation?
  2. Name one video generation AI tool
  3. What can GitHub Copilot help with?

Key Takeaways​

✅ Audio AI can create speech, music, and voice clones

✅ Video AI is emerging with tools like Sora and Runway

✅ Code AI helps write, debug, and explain programs

✅ Multimodal AI handles multiple types of content

✅ Many tools have free tiers to try


Module Complete!​

Congratulations on completing Module 2! 🎉

Take the quiz to test your knowledge:

👉 Take Module 2 Quiz

Then continue to Module 3 where you'll learn to actually use these tools!