SpeechTranslatorOptions.Builder

class SpeechTranslatorOptions.Builder


Builder for SpeechTranslatorOptions.

Summary

Public constructors

Builder(sourceLocale: Locale, targetLocale: Locale)

Public functions

SpeechTranslatorOptions

Builds the SpeechTranslatorOptions instance.

Public properties

Executor?

The custom Executor to use.

Public constructors

Builder

Builder(sourceLocale: Locale, targetLocale: Locale)

Public functions

build

fun build(): SpeechTranslatorOptions

Builds the SpeechTranslatorOptions instance.

Public properties

executor

var executor: Executor?

The custom Executor to use. If no Executor is set, an internal background thread pool will be used.

Most clients should not need to call this method.