2024-08-28 16:08:12 +00:00
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace BotSharp.Abstraction.MLTasks;
|
|
|
|
|
|
|
|
|
|
public interface IAudioCompletion
|
|
|
|
|
{
|
|
|
|
|
string Provider { get; }
|
|
|
|
|
|
2025-03-05 23:22:46 +00:00
|
|
|
string Model { get; }
|
|
|
|
|
|
2024-08-28 16:08:12 +00:00
|
|
|
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);
|
|
|
|
|
}
|