mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-05 00:07:21 +00:00
Added transcription of audio and video files to local data sources (#1081)
Co-authored-by: Paul Koudelka <106623909+PaulKoudelka@users.noreply.github.com>
This commit is contained in:
1 parent
8642ce2d81
commit
752f7d828a
82 files changed
+3231
-302
No files matched your search
@@ -4,6 +4,10 @@ using Microsoft.AspNetCore.Components;
|
||||
|
||||
namespace AIStudio.Components;
|
||||
|
||||
/// <summary>
|
||||
/// Warns that a data source sends its content to providers which are not self-hosted: its text to
|
||||
/// the embedding provider, and its audio and video files to the transcription provider.
|
||||
/// </summary>
|
||||
public partial class DataSourceCloudEmbeddingWarning : MSGComponentBase
|
||||
{
|
||||
[Parameter]
|
||||
@@ -21,6 +25,33 @@ public partial class DataSourceCloudEmbeddingWarning : MSGComponentBase
|
||||
[Parameter]
|
||||
public Func<bool, string?> Validation { get; set; } = _ => null;
|
||||
|
||||
/// <summary>
|
||||
/// Whether the content goes to an embedding provider which is not self-hosted.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public bool SendsEmbeddingsToCloud { get; set; } = true;
|
||||
|
||||
/// <summary>
|
||||
/// The name of the transcription provider which is not self-hosted and receives the audio and
|
||||
/// video files of the data source, or empty when no media file leaves the computer.
|
||||
/// </summary>
|
||||
[Parameter]
|
||||
public string CloudTranscriptionProvider { get; set; } = string.Empty;
|
||||
|
||||
private bool SendsMediaToCloudTranscription => !string.IsNullOrWhiteSpace(this.CloudTranscriptionProvider);
|
||||
|
||||
private string LabelOn => this.SendsMediaToCloudTranscription
|
||||
? T("Yes, please send my data to the external providers")
|
||||
: T("Yes, please send my data to the external embedding provider");
|
||||
|
||||
private string LabelOff => this.SendsMediaToCloudTranscription
|
||||
? T("No, I will choose other providers or files")
|
||||
: T("No, I will choose another embedding");
|
||||
|
||||
private string TranscriptionWarningText => string.Format(
|
||||
T("Warning: Your transcription provider '{0}' is not self-hosted. Audio and video files this data source selects are sent to it to be transcribed, which can cost money. AI Studio keeps every transcript, so an unchanged recording is sent only once. MindWork AI Studio has no control over what that third party does with the recordings after they are sent."),
|
||||
this.CloudTranscriptionProvider);
|
||||
|
||||
private string WarningText
|
||||
{
|
||||
get
|
||||
|
||||
Reference in new issue
Block a user