You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

26 lines
681 B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ShenTun.Speech.Instance;
namespace ShenTun.Speech
{
public class SpeechMethods
{
private readonly ClientSpeech _client = new ClientSpeech();
public async Task<object> SpeechConnect(dynamic request)
{
string _json = (string)request.asMessage;
return await _client.ConnectAsync(_json);
}
public async Task<object> SpeechSendText(dynamic request)
{
string _json = (string)request.asMessage;
return await _client.SendTextAsync(_json);
}
}
}