C# .NET4.5.2 - простое WinFormприложение, слушающее голосовые команды
10 USDНужно простое Winforms приложение, слушающее голосовые команды после запуска (хотя бы одну, например "hello") и при получении команды, вызывающее пустую функцию обработчик. Я пробовал сделать подобное (код ниже), однако получаю ошибку: PlatformNotSupportedException . По рекомендациям в интернете пробовал скачать "Microsoft Speech Services v11" и SDK - но ссылки на них (на сайте Майкрософт) неактуальны. Нужно решить эту задачу (либо помочь мне установить нужные пакеты майкрософта, либо сделать ожидание голосовых команд через другой сервис.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Speech.Recognition;
using System.Speech.Synthesis;
namespace VoiceControlAlex
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
SpeechRecognizer sr = new SpeechRecognizer();
GrammarBuilder gb = new GrammarBuilder("hello");
Grammar gr = new Grammar(gb);
sr.LoadGrammar(gr);
sr.SpeechRecognized += Sr_SpeechRecognized;
}
private void Sr_SpeechRecognized(object sender, SpeechRecognizedEventArgs e)
{
if (e.Result.Text == "hello computer")
{
SpeechSynthesizer sythesizer = new SpeechSynthesizer();
sythesizer.Speak("hello user");
}
}
}
}
-
969 16 0 Добрый день.
Имеется уже готовый проект под Visual Studio с уже подключенными библиотеками System.Speech и базовым функционалом (распознает фразы и выводит их через MessageBox). Могу предоставить, проконсультировать и внести нужные изменения.
-
383 7 0 Добрый день, готов взяться за работу, имею опыт программирования на C #, также есть некоторые наработки связанные с этой работой можете посмотреть в профиль.Все вопросы в лс
-
Вот тут можно скачать: https://www.voiceelements.com/docs/programmable-voice/speech-recognition/install-microsoft-speech-platform/
Не знаю насколько они тождественны оригинальным, но попробуйте
-
Current freelance projects in the category C#
Implementation of Telegram business logic
167 USD
What we have: .Net core project for developing a Telegram bot for employee surveys. The project works on the web using Docker, update reception via webhook implemented, all additional business logic functions implemented except the main one - the survey process. What needs to… C#, Bot development ∙ 6 proposals |
Write a program in C# using a database
13 USD
A program needs to be written in the C# programming language with database connection (My Sql), on the topic of designing and developing the "Workday Planning" database. Overall, part of the program already exists, but it is necessary to create a database and connect it to… C#, Databases ∙ 10 proposals |
Smart contract for token airdrop
637 USD
Need to create a smart contract for token giveaways, which will then be integrated into a Telegram bot. About the giveaway: - A person transfers crypto (USDT or other cryptocurrency...) to a specific wallet address. - The smart contract automatically sends tokens or NFTs to the… Blockchain, C# ∙ 4 proposals |
C# and go developer under refactoring list of services |
Software application “College Graduate Guide” (C# Windows Form)Create the GUI program "Visual Studio C#, Windows Forms" which provides: List of graduates; Adding and updating information; use of different filters and criteria to find specific graduates according to the professional direction, the place of work, the year of release; The… C#, Microsoft .NET ∙ 18 proposals |