2024-07-29 19:15:46 +00:00
|
|
|
using Whisper.net;
|
|
|
|
|
|
2024-08-26 22:24:07 +00:00
|
|
|
namespace BotSharp.Plugin.AudioHandler.Models;
|
|
|
|
|
|
|
|
|
|
public class AudioOutput
|
2024-07-29 19:15:46 +00:00
|
|
|
{
|
2024-08-26 22:24:07 +00:00
|
|
|
public List<SegmentData> Segments { get; set; } = new();
|
2024-07-29 19:15:46 +00:00
|
|
|
|
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;
|
2024-07-29 19:15:46 +00:00
|
|
|
}
|
|
|
|
|
}
|