Skip to content
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

Added a Transcribe streaming example for Swift #7148

Merged
merged 7 commits into from
Dec 17, 2024

Conversation

shepazon
Copy link
Contributor

@shepazon shepazon commented Dec 11, 2024

This PR adds a Swift SDK example showing how to use Transcribe streaming, and how to use event streaming, in one fairly simple example program. Requires a spoken audio file in PCM, FLAC, or Ogg format (though I've had poor luck with Ogg in Transcribe, personally).

There's a preview build of this here: http://sheppycloud.aka.corp.amazon.com:4301/sdk-for-swift/latest/developer-guide/swift_transcribe-streaming_code_examples.html


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@shepazon shepazon self-assigned this Dec 11, 2024
@shepazon shepazon added Swift This issue relates to the AWS SDK for Swift Task A general update to the code base for language clarification, missing actions, tests, etc. labels Dec 11, 2024
@shepazon shepazon marked this pull request as ready for review December 12, 2024 22:06
@shepazon shepazon requested review from meyertst-aws and removed request for DavidSouther December 13, 2024 15:38
@shepazon
Copy link
Contributor Author

I've made recommended changes. I'd appreciate a second round of feedback to be sure they address your specific comments and that your PCM file works now.

Copy link
Contributor

@meyertst-aws meyertst-aws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@shepazon shepazon added the On Call Review needed This work needs an on-call review label Dec 17, 2024
@ford-at-aws ford-at-aws added On Call Review complete On call review complete and removed On Call Review needed This work needs an on-call review labels Dec 17, 2024
This example shows how to use Transcribe streaming from within a Swift program
using the AWS SDK for Swift. It simply runs a specified file through the
transcription process, outputting each fragment of transcribed text as it's
received.
Added the rest of the metadata I need. Also renamed and moved around some of
the files and types. Added a Readme. Other improvements to the source code for
use in snippets.
@ford-at-aws ford-at-aws merged commit b31cce8 into awsdocs:main Dec 17, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
On Call Review complete On call review complete Swift This issue relates to the AWS SDK for Swift Task A general update to the code base for language clarification, missing actions, tests, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants