BotSharp/src/Infrastructure/BotSharp.Abstraction/MLTasks/IAudioCompletion.cs
2025-03-05 17:22:46 -06:00

16 lines
356 B
C#

using System.IO;
namespace BotSharp.Abstraction.MLTasks;
public interface IAudioCompletion
{
string Provider { get; }
string Model { get; }
Task<string> GenerateTextFromAudioAsync(Stream audio, string audioFileName, string? text = null);
Task<BinaryData> GenerateAudioFromTextAsync(string text);
void SetModelName(string model);
}