Class: Xberg::TranscriptionConfig

Inherits:
Object
  • Object
show all
Defined in:
sig/types.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTranscriptionConfig

Returns a new instance of TranscriptionConfig.

Parameters:

  • enabled: (Boolean)
  • model: (WhisperModel)
  • language: (String)
  • timestamps: (Boolean)
  • max_duration_ms: (Integer)
  • max_bytes: (Integer)
  • timeout_ms: (Integer)
  • model_cache_dir: (String)
  • allow_network: (Boolean)
  • verify_hash: (Boolean)


545
# File 'sig/types.rbs', line 545

def initialize: (?enabled: bool, ?model: WhisperModel, ?language: String, ?timestamps: bool, ?max_duration_ms: Integer, ?max_bytes: Integer, ?timeout_ms: Integer, ?model_cache_dir: String, ?allow_network: bool, ?verify_hash: bool) -> void

Instance Attribute Details

#allow_networkBoolean?

Returns the value of attribute allow_network.

Returns:

  • (Boolean, nil)


542
543
544
# File 'sig/types.rbs', line 542

def allow_network
  @allow_network
end

#enabledBoolean?

Returns the value of attribute enabled.

Returns:

  • (Boolean, nil)


534
535
536
# File 'sig/types.rbs', line 534

def enabled
  @enabled
end

#languageString?

Returns the value of attribute language.

Returns:

  • (String, nil)


536
537
538
# File 'sig/types.rbs', line 536

def language
  @language
end

#max_bytesInteger?

Returns the value of attribute max_bytes.

Returns:

  • (Integer, nil)


539
540
541
# File 'sig/types.rbs', line 539

def max_bytes
  @max_bytes
end

#max_duration_msInteger?

Returns the value of attribute max_duration_ms.

Returns:

  • (Integer, nil)


538
539
540
# File 'sig/types.rbs', line 538

def max_duration_ms
  @max_duration_ms
end

#modelWhisperModel?

Returns the value of attribute model.

Returns:



535
536
537
# File 'sig/types.rbs', line 535

def model
  @model
end

#model_cache_dirString?

Returns the value of attribute model_cache_dir.

Returns:

  • (String, nil)


541
542
543
# File 'sig/types.rbs', line 541

def model_cache_dir
  @model_cache_dir
end

#timeout_msInteger?

Returns the value of attribute timeout_ms.

Returns:

  • (Integer, nil)


540
541
542
# File 'sig/types.rbs', line 540

def timeout_ms
  @timeout_ms
end

#timestampsBoolean?

Returns the value of attribute timestamps.

Returns:

  • (Boolean, nil)


537
538
539
# File 'sig/types.rbs', line 537

def timestamps
  @timestamps
end

#verify_hashBoolean?

Returns the value of attribute verify_hash.

Returns:

  • (Boolean, nil)


543
544
545
# File 'sig/types.rbs', line 543

def verify_hash
  @verify_hash
end

Class Method Details

.defaultTranscriptionConfig

Returns:



546
# File 'sig/types.rbs', line 546

def self.default: () -> TranscriptionConfig