Skip to content

Commit 7dcc34d

Browse files
authored
feat: [Speech] add custom prompt config in the request and return prompt in the response (#8851)
feat: add custom prompt config in the request and return prompt in the response feat: update min_speaker_count and max_speaker_count to be optional docs: Clarify that min_speaker_count and max_speaker_count in SpeakerDiarizationConfig are not currently used docs: Update guidance on how to enable speaker diarization; to enable, set the diarization_config field to an empty SpeakerDiarizationConfig message PiperOrigin-RevId: 852383212 Source-Link: googleapis/googleapis@1a14153 Source-Link: googleapis/googleapis-gen@c84243c
1 parent d6b2961 commit 7dcc34d

File tree

6 files changed

+201
-79
lines changed

6 files changed

+201
-79
lines changed

Speech/metadata/V2/CloudSpeech.php

170 Bytes
Binary file not shown.

Speech/src/V2/Client/SpeechClient.php

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ final class SpeechClient
133133
private const CODEGEN_NAME = 'gapic';
134134

135135
/** The default scopes required by the service. */
136-
public static $serviceScopes = [
137-
'https://www.googleapis.com/auth/cloud-platform',
138-
];
136+
public static $serviceScopes = ['https://www.googleapis.com/auth/cloud-platform'];
139137

140138
private $operationsClient;
141139

@@ -256,8 +254,13 @@ public static function cryptoKeyName(string $project, string $location, string $
256254
*
257255
* @return string The formatted crypto_key_version resource.
258256
*/
259-
public static function cryptoKeyVersionName(string $project, string $location, string $keyRing, string $cryptoKey, string $cryptoKeyVersion): string
260-
{
257+
public static function cryptoKeyVersionName(
258+
string $project,
259+
string $location,
260+
string $keyRing,
261+
string $cryptoKey,
262+
string $cryptoKeyVersion
263+
): string {
261264
return self::getPathTemplate('cryptoKeyVersion')->render([
262265
'project' => $project,
263266
'location' => $location,

Speech/src/V2/CustomPromptConfig.php

Lines changed: 71 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Speech/src/V2/RecognitionFeatures.php

Lines changed: 52 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Speech/src/V2/RecognitionResponseMetadata.php

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)