async def main()

in src/lib/codeSnippet.ts [18:33]


async def main() -> None:

    async with openai.audio.speech.with_streaming_response.create(
        model="gpt-4o-mini-tts",
        voice="${voice}",
        input=input,
        instructions=instructions,
        response_format="pcm",
    ) as response:
        await LocalAudioPlayer().play(response)

if __name__ == "__main__":
    asyncio.run(main())`;
    case "js":
      return `import OpenAI from 'openai';
import { playAudio } from 'openai/helpers/audio';