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

1 month ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using ShenTun.Speech.Instance;
  7. namespace ShenTun.Speech
  8. {
  9. public class SpeechMethods
  10. {
  11. private readonly ClientSpeech _client = new ClientSpeech();
  12. public async Task<object> SpeechConnect(dynamic request)
  13. {
  14. string _json = (string)request.asMessage;
  15. return await _client.ConnectAsync(_json);
  16. }
  17. public async Task<object> SpeechSendText(dynamic request)
  18. {
  19. string _json = (string)request.asMessage;
  20. return await _client.SendTextAsync(_json);
  21. }
  22. }
  23. }