Cloud Speech-to-Text V2 API - Module Google::Cloud::Speech::V2::Speech::Paths (v1.2.1)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Speech-to-Text V2 API module Google::Cloud::Speech::V2::Speech::Paths.
Path helper methods for the Speech API.
Methods
#config_path
def config_path(project:, location:) -> ::String
Create a fully-qualified Config resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/config
Parameters
-
project (String)
-
location (String)
#crypto_key_path
def crypto_key_path(project:, location:, key_ring:, crypto_key:) -> ::String
Create a fully-qualified CryptoKey resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}
Parameters
-
project (String)
-
location (String)
-
key_ring (String)
-
crypto_key (String)
#crypto_key_version_path
def crypto_key_version_path(project:, location:, key_ring:, crypto_key:, crypto_key_version:) -> ::String
Create a fully-qualified CryptoKeyVersion resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}
Parameters
-
project (String)
-
location (String)
-
key_ring (String)
-
crypto_key (String)
-
crypto_key_version (String)
#custom_class_path
def custom_class_path(project:, location:, custom_class:) -> ::String
Create a fully-qualified CustomClass resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/customClasses/{custom_class}
Parameters
-
project (String)
-
location (String)
-
custom_class (String)
#location_path
def location_path(project:, location:) -> ::String
Create a fully-qualified Location resource string.
The resource will be in the following format:
projects/{project}/locations/{location}
Parameters
-
project (String)
-
location (String)
#phrase_set_path
def phrase_set_path(project:, location:, phrase_set:) -> ::String
Create a fully-qualified PhraseSet resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/phraseSets/{phrase_set}
Parameters
-
project (String)
-
location (String)
-
phrase_set (String)
#recognizer_path
def recognizer_path(project:, location:, recognizer:) -> ::String
Create a fully-qualified Recognizer resource string.
The resource will be in the following format:
projects/{project}/locations/{location}/recognizers/{recognizer}
Parameters
-
project (String)
-
location (String)
-
recognizer (String)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-09-04 UTC.
[[["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-09-04 UTC."],[],[],null,["# Cloud Speech-to-Text V2 API - Module Google::Cloud::Speech::V2::Speech::Paths (v1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/ruby/docs/reference/google-cloud-speech-v2/latest/Google-Cloud-Speech-V2-Speech-Paths)\n- [1.2.0](/ruby/docs/reference/google-cloud-speech-v2/1.2.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [1.1.0](/ruby/docs/reference/google-cloud-speech-v2/1.1.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [1.0.1](/ruby/docs/reference/google-cloud-speech-v2/1.0.1/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.16.0](/ruby/docs/reference/google-cloud-speech-v2/0.16.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.15.0](/ruby/docs/reference/google-cloud-speech-v2/0.15.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.14.0](/ruby/docs/reference/google-cloud-speech-v2/0.14.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.13.1](/ruby/docs/reference/google-cloud-speech-v2/0.13.1/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.12.0](/ruby/docs/reference/google-cloud-speech-v2/0.12.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.11.0](/ruby/docs/reference/google-cloud-speech-v2/0.11.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.10.0](/ruby/docs/reference/google-cloud-speech-v2/0.10.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.9.2](/ruby/docs/reference/google-cloud-speech-v2/0.9.2/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.8.0](/ruby/docs/reference/google-cloud-speech-v2/0.8.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.7.0](/ruby/docs/reference/google-cloud-speech-v2/0.7.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.6.0](/ruby/docs/reference/google-cloud-speech-v2/0.6.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.5.1](/ruby/docs/reference/google-cloud-speech-v2/0.5.1/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.4.0](/ruby/docs/reference/google-cloud-speech-v2/0.4.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.3.0](/ruby/docs/reference/google-cloud-speech-v2/0.3.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.2.0](/ruby/docs/reference/google-cloud-speech-v2/0.2.0/Google-Cloud-Speech-V2-Speech-Paths)\n- [0.1.0](/ruby/docs/reference/google-cloud-speech-v2/0.1.0/Google-Cloud-Speech-V2-Speech-Paths) \nReference documentation and code samples for the Cloud Speech-to-Text V2 API module Google::Cloud::Speech::V2::Speech::Paths.\n\nPath helper methods for the Speech API. \n\nExtended By\n-----------\n\n- [Google::Cloud::Speech::V2::Speech::Paths](./Google-Cloud-Speech-V2-Speech-Paths)\n\nMethods\n-------\n\n### #config_path\n\n def config_path(project:, location:) -\u003e ::String\n\nCreate a fully-qualified Config resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/config` \n**Parameters**\n\n- **project** (String)\n- **location** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #crypto_key_path\n\n def crypto_key_path(project:, location:, key_ring:, crypto_key:) -\u003e ::String\n\nCreate a fully-qualified CryptoKey resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **key_ring** (String)\n- **crypto_key** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #crypto_key_version_path\n\n def crypto_key_version_path(project:, location:, key_ring:, crypto_key:, crypto_key_version:) -\u003e ::String\n\nCreate a fully-qualified CryptoKeyVersion resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **key_ring** (String)\n- **crypto_key** (String)\n- **crypto_key_version** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #custom_class_path\n\n def custom_class_path(project:, location:, custom_class:) -\u003e ::String\n\nCreate a fully-qualified CustomClass resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/customClasses/{custom_class}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **custom_class** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #location_path\n\n def location_path(project:, location:) -\u003e ::String\n\nCreate a fully-qualified Location resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}` \n**Parameters**\n\n- **project** (String)\n- **location** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #phrase_set_path\n\n def phrase_set_path(project:, location:, phrase_set:) -\u003e ::String\n\nCreate a fully-qualified PhraseSet resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/phraseSets/{phrase_set}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **phrase_set** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)\n\n### #recognizer_path\n\n def recognizer_path(project:, location:, recognizer:) -\u003e ::String\n\nCreate a fully-qualified Recognizer resource string.\n\n\nThe resource will be in the following format:\n\n\u003cbr /\u003e\n\n`projects/{project}/locations/{location}/recognizers/{recognizer}` \n**Parameters**\n\n- **project** (String)\n- **location** (String)\n- **recognizer** (String) \n**Returns**\n\n- (::String) \n**Raises**\n\n- (::ArgumentError)"]]