r/ClaudeCode • • 2h ago

Help/Question A language-learning app

Hey guys!

I'm planning to build a language-learning app, and I've been thinking about adding some audio and AI features.

There are two things I'm a bit unsure about:

1. Audio pronunciation

For something as simple as tapping a speaker icon to hear a word or phrase, what's usually the best approach?

Do apps normally store pre-recorded audio for every word, or do they use a text-to-sound API to generate the audio on demand?

I'm also wondering about the costs. If thousands of users keep playing the same words over and over, wouldn't that get expensive with a TTS API? Would it make more sense to generate the audio once, save it, and reuse it whenever someone requests it? (does the apps do that?)

2. AI speaking partner

This is something I'd really like to include in the app.

The idea is to let users practice speaking with an AI in their target language. They talk through their microphone, and the AI responds with a voice, almost like having an actual conversation with someone.

I'm not sure what's the best way to build this, though.

  • Has anyone tried OpenAI's Realtime API for something like this? How well does it work?
  • Would it be better to use separate STT, LLM, and TTS services instead?
  • Which APIs or models would you recommend?
  • And most importantly, how expensive does this get in practice? For example, roughly how much would 10 minutes of conversation cost?

I'd really appreciate your advice and recommendations

Thank you!!

0 Upvotes

4 comments sorted by

View all comments

•

u/AutoModerator 2h ago

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.