Skip to content

Commit 10c3b14

Browse files
alixhamibshaffer
authored andcommitted
Speech region tag update (GoogleCloudPlatform#685)
1 parent 4c21e82 commit 10c3b14

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

speech/src/streaming_recognize.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Speech;
2525

26-
# [START streaming_recognize]
26+
# [START speech_transcribe_streaming]
2727
use Google\Cloud\Speech\V1\SpeechClient;
2828
use Google\Cloud\Speech\V1\RecognitionConfig;
2929
use Google\Cloud\Speech\V1\StreamingRecognitionConfig;
@@ -89,4 +89,4 @@ function streaming_recognize($audioFile, $languageCode, $encoding, $sampleRateHe
8989
$speechClient->close();
9090
}
9191
}
92-
# [END streaming_recognize]
92+
# [END speech_transcribe_streaming]

speech/src/transcribe_async.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace Google\Cloud\Samples\Speech;
2525

2626
use Exception;
27-
# [START transcribe_async]
27+
# [START speech_transcribe_async]
2828
use Google\Cloud\Speech\SpeechClient;
2929
use Google\Cloud\Core\ExponentialBackoff;
3030

@@ -75,4 +75,4 @@ function transcribe_async($audioFile, $languageCode = 'en-US', $options = [])
7575
}
7676
}
7777
}
78-
# [END transcribe_async]
78+
# [END speech_transcribe_async]

speech/src/transcribe_async_gcs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace Google\Cloud\Samples\Speech;
2525

2626
use Exception;
27-
# [START transcribe_async_gcs]
27+
# [START speech_transcribe_async_gcs]
2828
use Google\Cloud\Speech\SpeechClient;
2929
use Google\Cloud\Storage\StorageClient;
3030
use Google\Cloud\Core\ExponentialBackoff;
@@ -81,4 +81,4 @@ function transcribe_async_gcs($bucketName, $objectName, $languageCode = 'en-US',
8181
}
8282
}
8383
}
84-
# [END transcribe_async_gcs]
84+
# [END speech_transcribe_async_gcs]

speech/src/transcribe_async_words.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
namespace Google\Cloud\Samples\Speech;
2525

2626
use Exception;
27-
# [START transcribe_async_words]
27+
# [START speech_transcribe_async_time_offsets_gcs]
2828
use Google\Cloud\Speech\SpeechClient;
2929
use Google\Cloud\Core\ExponentialBackoff;
3030

@@ -84,4 +84,4 @@ function transcribe_async_words($audioFile, $languageCode = 'en-US', $options =
8484
}
8585
}
8686
}
87-
# [END transcribe_async_words]
87+
# [END speech_transcribe_async_time_offsets_gcs]

speech/src/transcribe_sync.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Speech;
2525

26-
# [START transcribe_sync]
26+
# [START speech_transcribe_sync]
2727
use Google\Cloud\Speech\SpeechClient;
2828

2929
/**
@@ -60,4 +60,4 @@ function transcribe_sync($audioFile, $languageCode = 'en-US', $options = [])
6060
printf('Confidence: %s' . PHP_EOL, $alternative['confidence']);
6161
}
6262
}
63-
# [END transcribe_sync]
63+
# [END speech_transcribe_sync]

speech/src/transcribe_sync_gcs.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
namespace Google\Cloud\Samples\Speech;
2525

26-
# [START transcribe_sync_gcs]
26+
# [START speech_transcribe_sync_gcs]
2727
use Google\Cloud\Speech\SpeechClient;
2828
use Google\Cloud\Storage\StorageClient;
2929

@@ -65,4 +65,4 @@ function transcribe_sync_gcs($bucketName, $objectName, $languageCode = 'en-US',
6565
printf('Confidence: %s' . PHP_EOL, $alternative['confidence']);
6666
}
6767
}
68-
# [END transcribe_sync_gcs]
68+
# [END speech_transcribe_sync_gcs]

0 commit comments

Comments
 (0)