init static method

void init({
  1. required String subscriptionKey,
  2. required String region,
  3. bool withLogs = true,
})

Initialises the framework.

region : Azure endpoint region

subscriptionKey : Azure subscription key

withLogs : (optional) enable logs. true by default

Throws an AzureException on failure.

Implementation

static void init(
    {required String subscriptionKey,
    required String region,
    bool withLogs = true}) async {
  Tts.init(
      region: region, subscriptionKey: subscriptionKey, withLogs: withLogs);
}