Class: OmniAI::Google::Transcribe

Inherits:
Transcribe
  • Object
show all
Includes:
TranscribeHelpers
Defined in:
lib/omniai/google/transcribe.rb

Overview

A Google transcribe implementation.

Usage:

transcribe = OmniAI::Google::Transcribe.new(client: client)
transcribe.process!(audio_file)

Defined Under Namespace

Modules: Model

Constant Summary collapse

DEFAULT_MODEL =
Model::LATEST_SHORT
DEFAULT_RECOGNIZER =
"_"
CONTEXT =

Returns:

  • (Context)
Context.build do |context|
  # No custom deserializers needed - let base class handle parsing
end

Instance Method Summary collapse

Instance Method Details

#process!OmniAI::Transcribe::Transcription

Returns:

  • (OmniAI::Transcribe::Transcription)

Raises:

  • (HTTPError)


35
36
37
38
39
40
41
# File 'lib/omniai/google/transcribe.rb', line 35

def process!
  if needs_async_recognition?
    process_async!
  else
    process_sync!
  end
end