BotSharp/src/Infrastructure/BotSharp.Abstraction/MLTasks/IAudioCompletion.cs

14 lines
329 B
C#
Raw Normal View History

2024-08-28 16:08:12 +00:00
using System.IO;
namespace BotSharp.Abstraction.MLTasks;
public interface IAudioCompletion
{
string Provider { get; }
Task<string> GenerateTextFromAudioAsync(Stream audio, string audioFileName, string? text = null);
2024-08-28 18:43:37 +00:00
Task<BinaryData> GenerateAudioFromTextAsync(string text);
2024-08-28 16:08:12 +00:00
void SetModelName(string model);
}