BotSharp/src/Plugins/BotSharp.Plugin.AudioHandler/Models/AudioOutput.cs

14 lines
318 B
C#
Raw Normal View History

using Whisper.net;
2024-08-26 22:24:07 +00:00
namespace BotSharp.Plugin.AudioHandler.Models;
public class AudioOutput
{
2024-08-26 22:24:07 +00:00
public List<SegmentData> Segments { get; set; } = new();
2024-08-26 22:24:07 +00:00
public override string ToString()
{
return this.Segments.Count > 0 ? string.Join(" ", this.Segments.Select(x => x.Text)) : string.Empty;
}
}