Skip navigation
I’ve been exploring Gemini 2.0’s new native audio output capability, which is available for early…
0:00 / 0:40

I’ve been exploring Gemini 2.0’s new native audio output capability, which is available for early…

Trudy Painter

@trudypainter3.4K followers

Visit on X
337 likesDownloadOriginal post

67,708 views

I’ve been exploring Gemini 2.0’s new native audio output capability, which is available for early testers. I’m a developer at Google Creative Lab, and wanted to share one of my favorite experiments so far called ✨ VoiceCursor (🔊 sound on for video) Unlike traditional TTS, native audio lets you prompt the model with expressive styles, ie “Say this like a disgruntled pirate…” So I made ✨VoiceCursor… it lets you rapidly try different prompts. Just type, highlight your phrase, then hear it spoken in different ways! My code is open-sourced here: Here’s a thread 🧵

10 Comments

Comments from the original post on X (Twitter)

  • Trudy Painter's profile picture

    @trudypainter

    Gemini 2.0 native audio output is available in AI Studio for early testers. The prompt in this screencap is: Say this in an upbeat, happy tone: “You can steer a voice and … put emphasis on different words!” 🔗

    19 likes

  • Trudy Painter's profile picture

    @trudypainter

    ✨Voice Cursor follows a similar prompting strategy. After you highlight a phrase, the Voice Cursor will ask the API for audio for the phrase in your selected voice and tone. (and you can edit the prompt sent to the Gemini API in the bottom box)

    18 likes

  • Trudy Painter's profile picture

    @trudypainter

    And for me, when the ✨Voice Cursor sits inside a familiar text editor, the highlight interaction feels fluid and comfortable. I’m excited about how native audio might enable new kinds of tools for how we write...

    18 likes

  • Trudy Painter's profile picture

    @trudypainter

    You can get the code to see how it works at Native audio output is available to early testers now, with a wider rollout expected next year. This voice cursor was built on top of Such a good repo Also - it’s super simple to change the tone prompt presets + how you make calls to the Gemini 2.0 API (see screenshot below).

    21 likes

  • jpa's profile picture

    @josephpalbanese

    so cool, trudy!

    3 likes

  • Codetard's profile picture

    @codetarded

    :)

    2 likes

  • Tom Bielecki's profile picture

    @tombielecki

    @codexeditor audio as another annotation layer

    2 likes

  • Data & Analytics's profile picture

    @howdataworks

    @JeffDean @JeffDean, that native audio output sounds dope! Real game-changer for developers. How’s it stacking up against other tools you’ve tried?

    1 like

  • steve ike's profile picture

    @steve_ike_

    This is really cool. Thanks for sharing, look forward to checking out the code and learning from your work.

    1 like

  • 𝑫𝒂𝒏𝒊𝒆𝒍 𝑺𝒄𝒐𝒕𝒕 𝑴𝒂𝒕𝒕𝒉𝒆𝒘𝒔 🇦🇺's profile picture

    @DanielSMatthews

    Oh, the quality is remarkable! Thanks for sharing.

    1 like