Class: Xberg::TranscriptionConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTranscriptionConfig

Returns a new instance of TranscriptionConfig.

Parameters:

  • enabled: (Boolean)
  • model: (enum_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)


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

def initialize: (?enabled: bool, ?model: enum_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 (readonly)

Returns the value of attribute allow_network.

Returns:

  • (Boolean)


2609
2610
2611
# File 'sig/types.rbs', line 2609

def allow_network
  @allow_network
end

#enabledBoolean (readonly)

Returns the value of attribute enabled.

Returns:

  • (Boolean)


2601
2602
2603
# File 'sig/types.rbs', line 2601

def enabled
  @enabled
end

#languageString? (readonly)

Returns the value of attribute language.

Returns:

  • (String, nil)


2603
2604
2605
# File 'sig/types.rbs', line 2603

def language
  @language
end

#max_bytesInteger? (readonly)

Returns the value of attribute max_bytes.

Returns:

  • (Integer, nil)


2606
2607
2608
# File 'sig/types.rbs', line 2606

def max_bytes
  @max_bytes
end

#max_duration_msInteger? (readonly)

Returns the value of attribute max_duration_ms.

Returns:

  • (Integer, nil)


2605
2606
2607
# File 'sig/types.rbs', line 2605

def max_duration_ms
  @max_duration_ms
end

#modelenum_WhisperModel (readonly)

Returns the value of attribute model.

Returns:

  • (enum_WhisperModel)


2602
2603
2604
# File 'sig/types.rbs', line 2602

def model
  @model
end

#model_cache_dirString? (readonly)

Returns the value of attribute model_cache_dir.

Returns:

  • (String, nil)


2608
2609
2610
# File 'sig/types.rbs', line 2608

def model_cache_dir
  @model_cache_dir
end

#timeout_msInteger? (readonly)

Returns the value of attribute timeout_ms.

Returns:

  • (Integer, nil)


2607
2608
2609
# File 'sig/types.rbs', line 2607

def timeout_ms
  @timeout_ms
end

#timestampsBoolean (readonly)

Returns the value of attribute timestamps.

Returns:

  • (Boolean)


2604
2605
2606
# File 'sig/types.rbs', line 2604

def timestamps
  @timestamps
end

#verify_hashBoolean (readonly)

Returns the value of attribute verify_hash.

Returns:

  • (Boolean)


2610
2611
2612
# File 'sig/types.rbs', line 2610

def verify_hash
  @verify_hash
end