Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions speech/src/streaming_recognize.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Speech;

# [START streaming_recognize]
# [START speech_transcribe_streaming]
use Google\Cloud\Speech\V1\SpeechClient;
use Google\Cloud\Speech\V1\RecognitionConfig;
use Google\Cloud\Speech\V1\StreamingRecognitionConfig;
Expand Down Expand Up @@ -89,4 +89,4 @@ function streaming_recognize($audioFile, $languageCode, $encoding, $sampleRateHe
$speechClient->close();
}
}
# [END streaming_recognize]
# [END speech_transcribe_streaming]
4 changes: 2 additions & 2 deletions speech/src/transcribe_async.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace Google\Cloud\Samples\Speech;

use Exception;
# [START transcribe_async]
# [START speech_transcribe_async]
use Google\Cloud\Speech\SpeechClient;
use Google\Cloud\Core\ExponentialBackoff;

Expand Down Expand Up @@ -75,4 +75,4 @@ function transcribe_async($audioFile, $languageCode = 'en-US', $options = [])
}
}
}
# [END transcribe_async]
# [END speech_transcribe_async]
4 changes: 2 additions & 2 deletions speech/src/transcribe_async_gcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace Google\Cloud\Samples\Speech;

use Exception;
# [START transcribe_async_gcs]
# [START speech_transcribe_async_gcs]
use Google\Cloud\Speech\SpeechClient;
use Google\Cloud\Storage\StorageClient;
use Google\Cloud\Core\ExponentialBackoff;
Expand Down Expand Up @@ -81,4 +81,4 @@ function transcribe_async_gcs($bucketName, $objectName, $languageCode = 'en-US',
}
}
}
# [END transcribe_async_gcs]
# [END speech_transcribe_async_gcs]
4 changes: 2 additions & 2 deletions speech/src/transcribe_async_words.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
namespace Google\Cloud\Samples\Speech;

use Exception;
# [START transcribe_async_words]
# [START speech_transcribe_async_time_offsets_gcs]
use Google\Cloud\Speech\SpeechClient;
use Google\Cloud\Core\ExponentialBackoff;

Expand Down Expand Up @@ -84,4 +84,4 @@ function transcribe_async_words($audioFile, $languageCode = 'en-US', $options =
}
}
}
# [END transcribe_async_words]
# [END speech_transcribe_async_time_offsets_gcs]
4 changes: 2 additions & 2 deletions speech/src/transcribe_sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Speech;

# [START transcribe_sync]
# [START speech_transcribe_sync]
use Google\Cloud\Speech\SpeechClient;

/**
Expand Down Expand Up @@ -60,4 +60,4 @@ function transcribe_sync($audioFile, $languageCode = 'en-US', $options = [])
printf('Confidence: %s' . PHP_EOL, $alternative['confidence']);
}
}
# [END transcribe_sync]
# [END speech_transcribe_sync]
4 changes: 2 additions & 2 deletions speech/src/transcribe_sync_gcs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

namespace Google\Cloud\Samples\Speech;

# [START transcribe_sync_gcs]
# [START speech_transcribe_sync_gcs]
use Google\Cloud\Speech\SpeechClient;
use Google\Cloud\Storage\StorageClient;

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