Code Monkey home page Code Monkey logo

ex_aws_transcribe's Introduction

ExAws.Transcribe

AWS Transcribe service module for ex_aws.

Installation

The package can be installed by adding ex_aws_transcribe to your list of dependencies in mix.exs along with your preferred JSON codec and http client:

def deps do
  [
    {:ex_aws, "~> 2.1.1"},
    {:ex_aws_transcribe, "~> 0.2.2"},
    {:poison, "~> 3.0"},
    {:hackney, "~> 1.9"},
  ]
end

Basic Usage

# Start transcription
ExAws.Transcribe.start_transcription_job("MyJob", "s3://bucket/file.mp3", "mp3", "en-US") |> ExAws.request!

# Monitor progress
job = ExAws.Transcribe.get_transcription_job("MyJob") |> ExAws.request!

# Fetch the transcript if complete
:ssl.start()
:inets.start()
transcript_url = get_in(job, ["TranscriptionJob", "Transcript", "TranscriptFileUri"])
{:ok, {_, _, body}} = :httpc.request(:get, {to_charlist(transcript_url), []}, [], [])

Listing jobs

ExAws.Transcribe.list_transcription_jobs() |> ExAws.request!

Specify settings

opts = [settings: [show_speaker_labels: true, max_speaker_labels: 10]]

ExAws.Transcribe.start_transcription_job(name, url, format, language, opts) |> ExAws.request()

Full documentation can be found at https://hexdocs.pm/ex_aws_transcribe

AWS Transcribe API Reference

https://docs.aws.amazon.com/transcribe/latest/dg/API_Operations.html

All options are handled as snake_case_atoms instead of CamelCase binaries as specified in the Transcribe API. For example, :media_format would be MediaFormat.

ex_aws_transcribe's People

Contributors

brianlow avatar cschilbe avatar bismark avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.