Class: Cohere::Transcribe::VAD::Silero::Execution

Inherits:
Data
  • Object
show all
Defined in:
lib/cohere/transcribe/vad/silero.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(model_calls:, valid_frames:, padded_frames:, max_files_per_call:, effective_block_frames:, model_load_seconds: 0.0, inference_seconds: 0.0, postprocess_seconds: 0.0) ⇒ Execution

Returns a new instance of Execution.



46
47
48
49
# File 'lib/cohere/transcribe/vad/silero.rb', line 46

def initialize(model_calls:, valid_frames:, padded_frames:, max_files_per_call:, effective_block_frames:,
               model_load_seconds: 0.0, inference_seconds: 0.0, postprocess_seconds: 0.0)
  super
end

Instance Attribute Details

#effective_block_framesObject (readonly)

Returns the value of attribute effective_block_frames

Returns:

  • (Object)

    the current value of effective_block_frames



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def effective_block_frames
  @effective_block_frames
end

#inference_secondsObject (readonly)

Returns the value of attribute inference_seconds

Returns:

  • (Object)

    the current value of inference_seconds



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def inference_seconds
  @inference_seconds
end

#max_files_per_callObject (readonly)

Returns the value of attribute max_files_per_call

Returns:

  • (Object)

    the current value of max_files_per_call



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def max_files_per_call
  @max_files_per_call
end

#model_callsObject (readonly)

Returns the value of attribute model_calls

Returns:

  • (Object)

    the current value of model_calls



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def model_calls
  @model_calls
end

#model_load_secondsObject (readonly)

Returns the value of attribute model_load_seconds

Returns:

  • (Object)

    the current value of model_load_seconds



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def model_load_seconds
  @model_load_seconds
end

#padded_framesObject (readonly)

Returns the value of attribute padded_frames

Returns:

  • (Object)

    the current value of padded_frames



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def padded_frames
  @padded_frames
end

#postprocess_secondsObject (readonly)

Returns the value of attribute postprocess_seconds

Returns:

  • (Object)

    the current value of postprocess_seconds



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def postprocess_seconds
  @postprocess_seconds
end

#valid_framesObject (readonly)

Returns the value of attribute valid_frames

Returns:

  • (Object)

    the current value of valid_frames



36
37
38
# File 'lib/cohere/transcribe/vad/silero.rb', line 36

def valid_frames
  @valid_frames
end