Skip to content

Commit

Permalink
remove hard-coded region
Browse files Browse the repository at this point in the history
updated-readme
  • Loading branch information
meyertst-aws committed Nov 6, 2024
1 parent 2f1b521 commit d07e409
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion javav2/example_code/transcribe/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav
Code excerpts that show you how to call individual service functions.

- [ListTranscriptionJobs](src/main/java/com/amazonaws/transcribe/ListTranscriptionJobs.java#L12)
- [StartTranscriptionJob](src/main/java/com/amazonaws/transcribestreaming/TranscribeStreamingDemoApp.java#L26)
- [StartMedicalStreamTranscription](src/main/java/com/amazonaws/transcribestreaming/TranscribeMedicalStreamingDemoApp.java#L25)
- [StartStreamTranscription](src/main/java/com/amazonaws/transcribestreaming/TranscribeStreamingDemoApp.java#L26)

### Scenarios

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,13 @@
*/

public class TranscribeMedicalStreamingDemoApp {
private static final Region REGION = Region.US_EAST_1;
private static TranscribeStreamingAsyncClient client;

public static void main(String args[])
throws ExecutionException, InterruptedException, LineUnavailableException {

client = TranscribeStreamingAsyncClient.builder()
.credentialsProvider(getCredentials())
.region(REGION)
.build();

CompletableFuture<Void> result = client.startMedicalStreamTranscription(getMedicalRequest(16_000),
Expand Down

0 comments on commit d07e409

Please sign in to comment.