-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Java:Transcribe, medical streaming #7044
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This feels to me like it should be a small scenario, rather than just a couple of Action examples, because of they way it has a demo app that ties things together.
@@ -262,7 +262,20 @@ transcribe_StartStreamTranscriptionAsync: | |||
snippet_tags: | |||
- transcribe.cpp.stream_transcription_async.code | |||
services: | |||
transcribe: {StartStreamTranscriptionAsync} | |||
transcribe: {StartStreamTranscription} | |||
transcribe_StartMedicalStreamTranscription: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like both of these APIs are part of a separate service client transcribe_streaming, so you'll need to create an entry for that in services.yaml and reference it here for the API ref links to work correctly.
@@ -0,0 +1,206 @@ | |||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests? At least simple integration tests like other Java examples.
|
||
if (!AudioSystem.isLineSupported(info)) { | ||
System.out.println("Line not supported"); | ||
System.exit(0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This strikes me as an unusual way to handle this. Why not throw an exception?
Adds a transcribe medical streaming example.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.