/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
* All rights reserved.
*
* This source code is licensed under the license found in the
* LICENSE file in the root directory of this source tree.
*/
using Meta.WitAi.Events;
using UnityEngine.Events;
namespace Meta.WitAi.Interfaces
{
public interface ITranscriptionProvider
{
///
/// Provides the last transcription value (could be a partial transcription)
///
string LastTranscription { get; }
///
/// Callback used to notify Wit subscribers of a partial transcription.
///
WitTranscriptionEvent OnPartialTranscription { get; }
///
/// Callback used to notify Wit subscribers of a full transcription
///
WitTranscriptionEvent OnFullTranscription { get; }
///
/// Callback used to notify Wit subscribers when the mic is active and transcription has begun
///
UnityEvent OnStoppedListening { get; }
///
/// Callback used to notify Wit subscribers when the mic is inactive and transcription has stopped
///
UnityEvent OnStartListening { get; }
///
/// Callback used to notify Wit subscribers on mic volume level changes
///
WitMicLevelChangedEvent OnMicLevelChanged { get; }
///
/// Tells Wit if the mic input levels from the transcription service should be used directly
///
bool OverrideMicLevel { get; }
///
/// Called when wit is activated
///
void Activate();
///
/// Called when
///
void Deactivate();
}
}