Skip to content

Commit

Permalink
reorganized folder structure
Browse files Browse the repository at this point in the history
  • Loading branch information
meyertst-aws committed Nov 13, 2024
1 parent a1a6bf2 commit c52ad86
Show file tree
Hide file tree
Showing 19 changed files with 1,151 additions and 997 deletions.
10 changes: 5 additions & 5 deletions .doc_gen/metadata/transcribe-streaming_metadata.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# zexi 0.4.3

transcribe_streaming_StartStreamTranscription:
transcribe-streaming_StartStreamTranscription:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/transcribe
github: javav2/example_code/transcribe-streaming
sdkguide:
excerpts:
- description:
Expand All @@ -14,19 +14,19 @@ transcribe_streaming_StartStreamTranscription:
C++:
versions:
- sdk_version: 1
github: cpp/example_code/transcribe
github: cpp/example_code/transcribe-streaming
excerpts:
- description:
snippet_tags:
- transcribe.cpp.stream_transcription_async.code
services:
transcribe-streaming: {StartStreamTranscription}
transcribe_streaming_StartMedicalStreamTranscription:
transcribe-streaming_StartMedicalStreamTranscription:
languages:
Java:
versions:
- sdk_version: 2
github: javav2/example_code/transcribe
github: javav2/example_code/transcribe-streaming
sdkguide:
excerpts:
- description:
Expand Down
File renamed without changes.
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 @@ -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

0 comments on commit c52ad86

Please sign in to comment.