Add New colab for Gemini TTS VR EAP#2969
Conversation
There was a problem hiding this comment.
Change the filename of this to be get_started_with_gemini_tts_voice_replication.ipynb This way we can use the same notebook when its out of EAP, and VR is an ambiguous abbreviation.
Also, is this something that can be shared publicly even if the feature is EAP?
| "source": [ | ||
| "\n", | ||
| "\n", | ||
| "This is an EAP demo of Voice Replication feature on Gemini 3 TTS models. Access is limited.\n", |
There was a problem hiding this comment.
Can you add a link to the access request form?
| "\n", | ||
| "### Prerequisites:\n", | ||
| "\n", | ||
| "1. Use the default [Python 3 Runtime](https://screenshot.googleplex.com/A7A6tR4NoFWMvAd) to run this colab.\n", |
There was a problem hiding this comment.
Don't use internal links.
| " if ENVIRONMENT == \"STAGING\":\n", | ||
| " base_url = \"https://staging-aiplatform.sandbox.googleapis.com\"\n", | ||
| " elif ENVIRONMENT == \"AUTOPUSH\":\n", | ||
| " base_url = \"https://autopush-aiplatform.sandbox.googleapis.com\"\n", |
There was a problem hiding this comment.
If this ever requires STAGING/AUTOPUSH to run, I'd advise against putting in this repository. Remove this block, we shouldn't expose these internal endpoints.
| " elif ENVIRONMENT == \"AUTOPUSH\":\n", | ||
| " base_url = \"https://autopush-aiplatform.sandbox.googleapis.com\"\n", | ||
| "\n", | ||
| " url_vertex = f\"{base_url}/v1/projects/{project_id}/locations/global/publishers/google/models/{model_id}:generateContent\"\n", |
There was a problem hiding this comment.
Can these requests be made with the Gen AI SDK? or TTS SDK?
| "output.register_callback('generate_voice_key_rpc', generate_voice_key_rpc)\n", | ||
| "\n", | ||
| "# 3. Define the HTML and JavaScript UI as a raw string to prevent Python from parsing JS escape characters\n", | ||
| "html_ui = r\"\"\"\n", |
There was a problem hiding this comment.
Can you do this without HTML? Is it actually needed or could it be done with Jupyter Notebook built-ins?
Updated references from Vertex AI to Agent Platform in the notebook.
|
Closing out because this is EAP only |
Description
Thank you for opening a Pull Request!
Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
CONTRIBUTINGGuide../scripts/format.shfrom the repository root to format).READMEfile.CODEOWNERSfor the file(s).Fixes #<issue_number_goes_here> 🦕