Skip to content

Java:Transcribe, medical streaming #7044

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

Merged
merged 8 commits into from
Nov 13, 2024
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
36 changes: 36 additions & 0 deletions .doc_gen/metadata/transcribe-streaming_metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# zexi 0.4.3

transcribe-streaming_StartStreamTranscription:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/transcribe-streaming
sdkguide:
excerpts:
- description:
snippet_tags:
- transcribe.java-streaming-demo
C++:
versions:
- sdk_version: 1
github: cpp/example_code/transcribe-streaming
excerpts:
- description:
snippet_tags:
- transcribe.cpp.stream_transcription_async.code
services:
transcribe-streaming: {StartStreamTranscription}
transcribe-streaming_StartMedicalStreamTranscription:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/transcribe-streaming
sdkguide:
excerpts:
- description:
snippet_tags:
- transcribe.java-medical-streaming-demo
services:
transcribe-streaming: {StartMedicalStreamTranscription}
21 changes: 0 additions & 21 deletions .doc_gen/metadata/transcribe_metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
# zexi 0.4.3
transcribe_StartTranscriptionJob:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/transcribe
sdkguide:
excerpts:
- description:
snippet_tags:
- transcribe.java-streaming-demo
.NET:
versions:
- sdk_version: 3
Expand Down Expand Up @@ -251,18 +242,6 @@ transcribe_DeleteVocabulary:
- python.example_code.transcribe.DeleteVocabulary
services:
transcribe: {DeleteVocabulary}
transcribe_StartStreamTranscriptionAsync:
languages:
C++:
versions:
- sdk_version: 1
github: cpp/example_code/transcribe
excerpts:
- description:
snippet_tags:
- transcribe.cpp.stream_transcription_async.code
services:
transcribe: {StartStreamTranscriptionAsync}
transcribe_Scenario_GettingStartedTranscriptionJobs:
title: Transcribe audio and get job data with &TSC; using an &AWS; SDK
title_abbrev: Transcribe audio and get job data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# Amazon Transcribe code examples for the SDK for C++
# Amazon Transcribe Streaming code examples for the SDK for C++

## Overview

Shows how to use the AWS SDK for C++ to work with Amazon Transcribe.
Shows how to use the AWS SDK for C++ to work with Amazon Transcribe Streaming.

<!--custom.overview.start-->
<!--custom.overview.end-->

_Amazon Transcribe provides transcription services for your audio files and audio streams._
_Amazon Transcribe Streaming produces real-time transcriptions for your media content._

## ⚠ Important

Expand Down Expand Up @@ -41,7 +41,7 @@ Next, for information on code example structures and how to build and run the ex

Code excerpts that show you how to call individual service functions.

- [StartStreamTranscriptionAsync](get_transcript.cpp#L28)
- [StartStreamTranscription](get_transcript.cpp#L28)


<!--custom.examples.start-->
Expand Down Expand Up @@ -88,9 +88,9 @@ folder.

## Additional resources

- [Amazon Transcribe Developer Guide](https://docs.aws.amazon.com/transcribe/latest/dg/what-is.html)
- [Amazon Transcribe API Reference](https://docs.aws.amazon.com/transcribe/latest/APIReference/Welcome.html)
- [SDK for C++ Amazon Transcribe reference](https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-transcribe/html/annotated.html)
- [Amazon Transcribe Streaming Developer Guide](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html)
- [Amazon Transcribe Streaming API Reference](https://docs.aws.amazon.com/transcribe/latest/APIReference/Welcome.html)
- [SDK for C++ Amazon Transcribe Streaming reference](https://sdk.amazonaws.com/cpp/api/LATEST/aws-cpp-sdk-transcribe/html/annotated.html)

<!--custom.resources.start-->
<!--custom.resources.end-->
Expand Down
79 changes: 79 additions & 0 deletions javav2/example_code/transcribe-streaming/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Amazon Transcribe Streaming code examples for the SDK for Java 2.x

## Overview

Shows how to use the AWS SDK for Java 2.x to work with Amazon Transcribe Streaming.

<!--custom.overview.start-->
<!--custom.overview.end-->

_Amazon Transcribe Streaming produces real-time transcriptions for your media content._

## ⚠ Important

* Running this code might result in charges to your AWS account. For more details, see [AWS Pricing](https://aws.amazon.com/pricing/) and [Free Tier](https://aws.amazon.com/free/).
* Running the tests might result in charges to your AWS account.
* We recommend that you grant your code least privilege. At most, grant only the minimum permissions required to perform the task. For more information, see [Grant least privilege](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html#grant-least-privilege).
* This code is not tested in every AWS Region. For more information, see [AWS Regional Services](https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services).

<!--custom.important.start-->
<!--custom.important.end-->

## Code examples

### Prerequisites

For prerequisites, see the [README](../../README.md#Prerequisites) in the `javav2` folder.


<!--custom.prerequisites.start-->
<!--custom.prerequisites.end-->

### Single actions

Code excerpts that show you how to call individual service functions.

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


<!--custom.examples.start-->
<!--custom.examples.end-->

## Run the examples

### Instructions


<!--custom.instructions.start-->
<!--custom.instructions.end-->



### Tests

⚠ Running tests might result in charges to your AWS account.


To find instructions for running these tests, see the [README](../../README.md#Tests)
in the `javav2` folder.



<!--custom.tests.start-->
<!--custom.tests.end-->

## Additional resources

- [Amazon Transcribe Streaming Developer Guide](https://docs.aws.amazon.com/transcribe/latest/dg/streaming.html)
- [Amazon Transcribe Streaming API Reference](https://docs.aws.amazon.com/transcribe/latest/APIReference/Welcome.html)
- [SDK for Java 2.x Amazon Transcribe Streaming reference](https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/transcribe/package-summary.html)

<!--custom.resources.start-->
<!--custom.resources.end-->

---

Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0
77 changes: 77 additions & 0 deletions javav2/example_code/transcribe-streaming/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>TranscribeJ2</groupId>
<artifactId>TranscribeJ2</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>17</java.version>
<maven.compiler.target>17</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.21.20</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-commons</artifactId>
<version>1.9.2</version>
</dependency>
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<version>1.9.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>2.0.5</version>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>transcribe</artifactId>
</dependency>
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>transcribestreaming</artifactId>
</dependency>
</dependencies>
</project>
Loading
Loading