Class SpeechAssistant
Inheritance
object
SpeechAssistant
Assembly: .dll
Syntax
public class SpeechAssistant : AIDevKitComponent
Properties
IsRecording
Declaration
public bool IsRecording { get; }
Property Value
OutputPath
Declaration
public string OutputPath { get; set; }
Property Value
Recorder
Declaration
public AudioRecorder Recorder { get; }
Property Value
Type |
Description |
AudioRecorder |
|
RecordingDuration
Declaration
public int RecordingDuration { get; set; }
Property Value
RemoveBackgroundNoise
Declaration
public bool RemoveBackgroundNoise { get; set; }
Property Value
SpeechToTextModel
Declaration
public Model SpeechToTextModel { get; set; }
Property Value
SpokenLanguage
Declaration
public SystemLanguage SpokenLanguage { get; set; }
Property Value
Type |
Description |
SystemLanguage |
|
Voice
Declaration
public Voice Voice { get; set; }
Property Value
VoiceChangerModel
Declaration
public Model VoiceChangerModel { get; set; }
Property Value
Methods
ChangeVoiceAsync(Voice)
Declaration
public UniTask<GeneratedAudio> ChangeVoiceAsync(Voice voice = null)
Parameters
Type |
Name |
Description |
Voice |
voice |
|
Returns
StartRecording(string)
Start recording audio from the microphone
Declaration
public void StartRecording(string deviceName = null)
Parameters
Type |
Name |
Description |
string |
deviceName |
|
TranscribeRecordingAsync()
Stop recording audio from the microphone and transcribe it
Declaration
public UniTask<Transcript> TranscribeRecordingAsync()
Returns
TranslateRecordingAsync()
Declaration
public UniTask<string> TranslateRecordingAsync()
Returns
Type |
Description |
UniTask<string> |
|