disable voice
This commit is contained in:
@@ -22,6 +22,25 @@ public partial class MainWindowViewModel : ViewModelBase
|
||||
private bool isListening;
|
||||
[ObservableProperty]
|
||||
private string recognizedtext;
|
||||
[ObservableProperty]
|
||||
private string commandText;
|
||||
|
||||
[RelayCommand]
|
||||
private void Send()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(CommandText))
|
||||
{
|
||||
// Эмулируем распознанный текст для отображения в логе
|
||||
Recognizedtext = CommandText;
|
||||
|
||||
// Отправляем в селектор
|
||||
Selector.selector(CommandText);
|
||||
|
||||
// Очищаем поле ввода
|
||||
CommandText = string.Empty;
|
||||
}
|
||||
}
|
||||
|
||||
private Action<string>? _coreHandler;
|
||||
|
||||
partial void OnIsListeningChanged(bool value)
|
||||
|
||||
Reference in New Issue
Block a user