Stay organized with collections
Save and categorize content based on your preferences.
Agent Assist uses the Speech-to-Text model adaptation to improve transcription quality by recognizing certain phrases more frequently than others. This page provides a guide to setting up model adaptation for Speech-to-Text transcription.
Use the Speech-to-Text console
You can create only global phrase sets with the Speech-to-Text console. Regional phrase sets must be created using the Speech-to-Text API.
In the Google Cloud console, go to the Speech-to-Text page.
Go to Speech-to-Text
Click Model Adaptations.
Click add_boxNew Resource.
Choose the Phrase set resource and API version V1, then fill in the phrases and boost values, then copy the phrase set name.
While Speech-to-Text model adaptation supports only English (en-US), you can configure phrase sets for other language regions with the Speech-to-Text API. This is particularly useful when transcribing English conversations that take place in those regions.
Use the following sample command to create regional phrase sets with the Speech-to-Text API.
For a conversation profile in a single Dialogflow region, the following table shows the corresponding Speech-to-Text region in which to create your phrase set.
Dialogflow region
Speech-to-Text region
us
us-central1
us-east1
us-east7
us-west1
northamerica-northeast1
northamerica-northeast2
us
eu
europe-west1
europe-west2
europe-west3
europe-west4
eu
australia-southeast1
asia-northeast1
asia-south1
asia-southeast1
me-west1
global
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eAgent Assist leverages Speech-to-Text model adaptation to enhance transcription accuracy by recognizing specified phrases more frequently.\u003c/p\u003e\n"],["\u003cp\u003eGlobal phrase sets can be created using the Speech-to-Text console, while regional phrase sets must be created via the Speech-to-Text API.\u003c/p\u003e\n"],["\u003cp\u003eTo implement phrase sets, you'll either navigate through the Speech-to-Text and Agent Assist consoles or utilize a Python script to update conversation profiles.\u003c/p\u003e\n"],["\u003cp\u003ePhrase sets created in the Speech-to-Text API can be configured for various language regions, even if the model adaptation only supports \u003ccode\u003een-US\u003c/code\u003e, useful for transcribing English in those areas.\u003c/p\u003e\n"],["\u003cp\u003eThe Speech-to-Text region in which to create the phrase sets varies based on the Dialogflow region of the conversation profile, and a provided table shows which Speech-to-Text region corresponds to each.\u003c/p\u003e\n"]]],[],null,["# Set up Speech-to-Text model adaptation\n\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nAgent Assist uses the [Speech-to-Text model adaptation](/speech-to-text/docs/adaptation-model) to improve transcription quality by recognizing certain phrases more frequently than others. This page provides a guide to setting up model adaptation for Speech-to-Text transcription.\n\nUse the Speech-to-Text console\n------------------------------\n\nYou can create only global phrase sets with the Speech-to-Text console. Regional phrase sets must be created using the Speech-to-Text API.\n\n1. In the Google Cloud console, go to the **Speech-to-Text** page. [Go to Speech-to-Text](https://console.cloud.google.com/speech)\n2. Click **Model Adaptations**.\n3. Click **add_boxNew Resource**.\n4. Choose the **Phrase set** resource and API version **V1** , then fill in the phrases and boost values, then copy the [phrase set](/speech-to-text/docs/adaptation-model#improve_recognition_of_words_and_phrases) name.\n5. Click **Save**.\n6. Navigate to the [Agent Assist console](https://agentassist.cloud.google.com/).\n7. Click **Conversation Profiles**, then choose the conversation profile you want to edit.\n8. Go to the **Phrase sets** section and paste the phrase set name.\n\n| **Note:** The `chirp_2` model in the Speech-to-Text config doesn't support adaptation.\n\nUse the Speech-to-Text API\n--------------------------\n\n1. Create a phrase set script by following the [speech recognition instructions](/speech-to-text/docs/adaptation).\n2. Run the following Python script to update your conversation profile:\n\n ```py\n # Conversation Profile to update\n PROJECT_ID = \"sample-project\"\n LOCATION = \"global\"\n CONVERSATION_PROFILE_ID = \"sample-conversation-profile\"\n # Speech model adaptation resource names\n SPEECH_ADAPTATION_PHRASES = [\"projects/sample-project/locations/global/phraseSets/sample-phrase-sets\"]\n\n import google.auth\n from google.auth.transport.requests import AuthorizedSession\n\n scopes=['https://www.googleapis.com/auth/cloud-platform']\n credentials, project = google.auth.default(\n scopes=scopes,\n quota_project_id=PROJECT_ID,\n )\n session = AuthorizedSession(credentials)\n\n profile_url = f\"https://dialogflow.googleapis.com/v2beta1/projects/{PROJECT_ID}/locations/{LOCATION}/conversationProfiles/{CONVERSATION_PROFILE_ID}\"\n get_response = session.get(profile_url)\n print(\"Checking for existing ConversationProfile...\")\n print(get_response.status_code)\n print(get_response.json())\n if get_response.status_code == 200:\n patch_response = session.patch(\n profile_url,\n params={\n \"updateMask\": \"sttConfig.phraseSets\"\n },\n json={\n \"sttConfig\": {\n \"phraseSets\": SPEECH_ADAPTATION_PHRASES\n }\n }\n )\n print(\"Updating ConversationProfile...\")\n print(patch_response.status_code)\n print(patch_response.json())\n ```\n\n \u003cbr /\u003e\n\n### Regional phrase sets\n\nWhile Speech-to-Text model adaptation supports only English (`en-US`), you can configure phrase sets for other language regions with the Speech-to-Text API. This is particularly useful when transcribing English conversations that take place in those regions.\n\nUse the following sample command to create regional phrase sets with the Speech-to-Text API. \n\n```bash\ncurl -X POST \\\n -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \\\n -H \"Content-Type: application/json; charset=utf-8\" \\\n -H \"X-Goog-User-Project: sample_project\" \\\n -d @sample_phrase_sets.json \\\n\"https://us-speech.googleapis.com/v1/projects/sample-project/locations/us/phraseSets\"\n```\n\nThe json file `@sample_phrase_sets.json` contains the following contents of the phrase sets: \n\n```json\n{\n \"parent\": \"projects/sample-project/locations/us\",\n \"phraseSetId\": \"sample-phrase-sets\",\n \"phraseSet\": {\n \"name\": \"sample-phrase-sets\",\n \"phrases\": [\n {\n \"value\": \"Some phrase\",\n \"boost\": 20\n }\n ]\n }\n}\n```\nFor a conversation profile in a single Dialogflow region, the following table shows the corresponding Speech-to-Text region in which to create your phrase set.\n\n\u003cbr /\u003e"]]