mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-21 18:52:36 +01:00
Add new Claude 3.5 Sonnet model - thx Flash :)
This commit is contained in:
parent
8b5a7c1036
commit
a9d737aff5
@ -51,7 +51,7 @@ namespace Nikse.SubtitleEdit.Core.AutoTranslate
|
|||||||
var model = Configuration.Settings.Tools.AnthropicApiModel;
|
var model = Configuration.Settings.Tools.AnthropicApiModel;
|
||||||
if (string.IsNullOrEmpty(model))
|
if (string.IsNullOrEmpty(model))
|
||||||
{
|
{
|
||||||
model = "claude-3-opus-20240229";
|
model = "claude-3-5-sonnet-20240620";
|
||||||
Configuration.Settings.Tools.AnthropicApiModel = model;
|
Configuration.Settings.Tools.AnthropicApiModel = model;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -570,7 +570,7 @@ namespace Nikse.SubtitleEdit.Core.Common
|
|||||||
OllamaPrompt = "Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments or notes:";
|
OllamaPrompt = "Translate from {0} to {1}, keep punctuation as input, do not censor the translation, give only the output without comments or notes:";
|
||||||
AnthropicApiUrl = "https://api.anthropic.com/v1/messages";
|
AnthropicApiUrl = "https://api.anthropic.com/v1/messages";
|
||||||
AnthropicPrompt = "Translate from {0} to {1}, keep sentences in {1} as they are, do not censor the translation, give only the output without comments:";
|
AnthropicPrompt = "Translate from {0} to {1}, keep sentences in {1} as they are, do not censor the translation, give only the output without comments:";
|
||||||
AnthropicApiModel = "claude-3-opus-20240229";
|
AnthropicApiModel = "claude-3-5-sonnet-20240620";
|
||||||
TextToSpeechAzureRegion = "westeurope";
|
TextToSpeechAzureRegion = "westeurope";
|
||||||
AutoTranslateMaxBytes = 2000;
|
AutoTranslateMaxBytes = 2000;
|
||||||
TextToSpeechAddToVideoFile = true;
|
TextToSpeechAddToVideoFile = true;
|
||||||
|
64
src/ui/Forms/Main.Designer.cs
generated
64
src/ui/Forms/Main.Designer.cs
generated
@ -41,9 +41,9 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
{
|
{
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Main));
|
||||||
Nikse.SubtitleEdit.Core.Common.TimeCode timeCode1 = new Nikse.SubtitleEdit.Core.Common.TimeCode();
|
Nikse.SubtitleEdit.Core.Common.TimeCode timeCode7 = new Nikse.SubtitleEdit.Core.Common.TimeCode();
|
||||||
Nikse.SubtitleEdit.Core.Common.TimeCode timeCode2 = new Nikse.SubtitleEdit.Core.Common.TimeCode();
|
Nikse.SubtitleEdit.Core.Common.TimeCode timeCode8 = new Nikse.SubtitleEdit.Core.Common.TimeCode();
|
||||||
Nikse.SubtitleEdit.Core.Common.TimeCode timeCode3 = new Nikse.SubtitleEdit.Core.Common.TimeCode();
|
Nikse.SubtitleEdit.Core.Common.TimeCode timeCode9 = new Nikse.SubtitleEdit.Core.Common.TimeCode();
|
||||||
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
this.statusStrip1 = new System.Windows.Forms.StatusStrip();
|
||||||
this.labelStatus = new System.Windows.Forms.ToolStripStatusLabel();
|
this.labelStatus = new System.Windows.Forms.ToolStripStatusLabel();
|
||||||
this.toolStripSelected = new System.Windows.Forms.ToolStripStatusLabel();
|
this.toolStripSelected = new System.Windows.Forms.ToolStripStatusLabel();
|
||||||
@ -586,6 +586,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
this.timerOriginalTextUndo = new System.Windows.Forms.Timer(this.components);
|
this.timerOriginalTextUndo = new System.Windows.Forms.Timer(this.components);
|
||||||
this.contextMenuStripShowVideoControls = new System.Windows.Forms.ContextMenuStrip(this.components);
|
this.contextMenuStripShowVideoControls = new System.Windows.Forms.ContextMenuStrip(this.components);
|
||||||
this.toolStripMenuItemShowVideoControls = new System.Windows.Forms.ToolStripMenuItem();
|
this.toolStripMenuItemShowVideoControls = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.generaeTransparentVideoWithSubtitleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.statusStrip1.SuspendLayout();
|
this.statusStrip1.SuspendLayout();
|
||||||
this.toolStrip1.SuspendLayout();
|
this.toolStrip1.SuspendLayout();
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
@ -2302,6 +2303,7 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
this.generateBlankVideoToolStripMenuItem,
|
this.generateBlankVideoToolStripMenuItem,
|
||||||
this.generateVideoWithSoftcodedSubtitlesToolStripMenuItem,
|
this.generateVideoWithSoftcodedSubtitlesToolStripMenuItem,
|
||||||
this.generateVideoWithHardcodedSubtitleToolStripMenuItem,
|
this.generateVideoWithHardcodedSubtitleToolStripMenuItem,
|
||||||
|
this.generaeTransparentVideoWithSubtitleToolStripMenuItem,
|
||||||
this.audioToTextWhisperTolStripMenuItem,
|
this.audioToTextWhisperTolStripMenuItem,
|
||||||
this.videoaudioToTextToolStripMenuItem,
|
this.videoaudioToTextToolStripMenuItem,
|
||||||
this.textToSpeechAndAddToVideoToolStripMenuItem,
|
this.textToSpeechAndAddToVideoToolStripMenuItem,
|
||||||
@ -3914,14 +3916,14 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
this.timeUpDownVideoPosition.Size = new System.Drawing.Size(113, 23);
|
this.timeUpDownVideoPosition.Size = new System.Drawing.Size(113, 23);
|
||||||
this.timeUpDownVideoPosition.TabIndex = 12;
|
this.timeUpDownVideoPosition.TabIndex = 12;
|
||||||
this.timeUpDownVideoPosition.TabStop = false;
|
this.timeUpDownVideoPosition.TabStop = false;
|
||||||
timeCode1.Hours = 0;
|
timeCode7.Hours = 0;
|
||||||
timeCode1.Milliseconds = 0;
|
timeCode7.Milliseconds = 0;
|
||||||
timeCode1.Minutes = 0;
|
timeCode7.Minutes = 0;
|
||||||
timeCode1.Seconds = 0;
|
timeCode7.Seconds = 0;
|
||||||
timeCode1.TimeSpan = System.TimeSpan.Parse("00:00:00");
|
timeCode7.TimeSpan = System.TimeSpan.Parse("00:00:00");
|
||||||
timeCode1.TotalMilliseconds = 0D;
|
timeCode7.TotalMilliseconds = 0D;
|
||||||
timeCode1.TotalSeconds = 0D;
|
timeCode7.TotalSeconds = 0D;
|
||||||
this.timeUpDownVideoPosition.TimeCode = timeCode1;
|
this.timeUpDownVideoPosition.TimeCode = timeCode7;
|
||||||
this.timeUpDownVideoPosition.UseVideoOffset = false;
|
this.timeUpDownVideoPosition.UseVideoOffset = false;
|
||||||
//
|
//
|
||||||
// buttonGotoSub
|
// buttonGotoSub
|
||||||
@ -4194,14 +4196,14 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
this.timeUpDownVideoPositionAdjust.Size = new System.Drawing.Size(113, 23);
|
this.timeUpDownVideoPositionAdjust.Size = new System.Drawing.Size(113, 23);
|
||||||
this.timeUpDownVideoPositionAdjust.TabIndex = 13;
|
this.timeUpDownVideoPositionAdjust.TabIndex = 13;
|
||||||
this.timeUpDownVideoPositionAdjust.TabStop = false;
|
this.timeUpDownVideoPositionAdjust.TabStop = false;
|
||||||
timeCode2.Hours = 0;
|
timeCode8.Hours = 0;
|
||||||
timeCode2.Milliseconds = 0;
|
timeCode8.Milliseconds = 0;
|
||||||
timeCode2.Minutes = 0;
|
timeCode8.Minutes = 0;
|
||||||
timeCode2.Seconds = 0;
|
timeCode8.Seconds = 0;
|
||||||
timeCode2.TimeSpan = System.TimeSpan.Parse("00:00:00");
|
timeCode8.TimeSpan = System.TimeSpan.Parse("00:00:00");
|
||||||
timeCode2.TotalMilliseconds = 0D;
|
timeCode8.TotalMilliseconds = 0D;
|
||||||
timeCode2.TotalSeconds = 0D;
|
timeCode8.TotalSeconds = 0D;
|
||||||
this.timeUpDownVideoPositionAdjust.TimeCode = timeCode2;
|
this.timeUpDownVideoPositionAdjust.TimeCode = timeCode8;
|
||||||
this.timeUpDownVideoPositionAdjust.UseVideoOffset = false;
|
this.timeUpDownVideoPositionAdjust.UseVideoOffset = false;
|
||||||
//
|
//
|
||||||
// buttonAdjustSetEndTime
|
// buttonAdjustSetEndTime
|
||||||
@ -5558,14 +5560,14 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
this.timeUpDownStartTime.Size = new System.Drawing.Size(113, 23);
|
this.timeUpDownStartTime.Size = new System.Drawing.Size(113, 23);
|
||||||
this.timeUpDownStartTime.TabIndex = 0;
|
this.timeUpDownStartTime.TabIndex = 0;
|
||||||
this.timeUpDownStartTime.TabStop = false;
|
this.timeUpDownStartTime.TabStop = false;
|
||||||
timeCode3.Hours = 0;
|
timeCode9.Hours = 0;
|
||||||
timeCode3.Milliseconds = 0;
|
timeCode9.Milliseconds = 0;
|
||||||
timeCode3.Minutes = 0;
|
timeCode9.Minutes = 0;
|
||||||
timeCode3.Seconds = 0;
|
timeCode9.Seconds = 0;
|
||||||
timeCode3.TimeSpan = System.TimeSpan.Parse("00:00:00");
|
timeCode9.TimeSpan = System.TimeSpan.Parse("00:00:00");
|
||||||
timeCode3.TotalMilliseconds = 0D;
|
timeCode9.TotalMilliseconds = 0D;
|
||||||
timeCode3.TotalSeconds = 0D;
|
timeCode9.TotalSeconds = 0D;
|
||||||
this.timeUpDownStartTime.TimeCode = timeCode3;
|
this.timeUpDownStartTime.TimeCode = timeCode9;
|
||||||
this.timeUpDownStartTime.UseVideoOffset = false;
|
this.timeUpDownStartTime.UseVideoOffset = false;
|
||||||
//
|
//
|
||||||
// numericUpDownDuration
|
// numericUpDownDuration
|
||||||
@ -5919,6 +5921,13 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
this.toolStripMenuItemShowVideoControls.Text = "Show video controls";
|
this.toolStripMenuItemShowVideoControls.Text = "Show video controls";
|
||||||
this.toolStripMenuItemShowVideoControls.Click += new System.EventHandler(this.ToolStripMenuItemShowVideoControlsClick);
|
this.toolStripMenuItemShowVideoControls.Click += new System.EventHandler(this.ToolStripMenuItemShowVideoControlsClick);
|
||||||
//
|
//
|
||||||
|
// generaeTransparentVideoWithSubtitleToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.generaeTransparentVideoWithSubtitleToolStripMenuItem.Name = "generaeTransparentVideoWithSubtitleToolStripMenuItem";
|
||||||
|
this.generaeTransparentVideoWithSubtitleToolStripMenuItem.Size = new System.Drawing.Size(295, 22);
|
||||||
|
this.generaeTransparentVideoWithSubtitleToolStripMenuItem.Text = "Generae transparent video with subtitle";
|
||||||
|
this.generaeTransparentVideoWithSubtitleToolStripMenuItem.Click += new System.EventHandler(this.generaeTransparentVideoWithSubtitleToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
// Main
|
// Main
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
@ -6545,5 +6554,6 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
private ToolStripMenuItem videoInfoToolStripMenuItem;
|
private ToolStripMenuItem videoInfoToolStripMenuItem;
|
||||||
private ToolStripMenuItem openContainingFolderToolStripMenuItem;
|
private ToolStripMenuItem openContainingFolderToolStripMenuItem;
|
||||||
private ToolStripMenuItem insertNewSubtitleHereToolStripMenuItem;
|
private ToolStripMenuItem insertNewSubtitleHereToolStripMenuItem;
|
||||||
|
private ToolStripMenuItem generaeTransparentVideoWithSubtitleToolStripMenuItem;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -36898,5 +36898,20 @@ namespace Nikse.SubtitleEdit.Forms
|
|||||||
|
|
||||||
ShowStatus(string.Format(_language.VideoControls.NewTextInsertAtX, newParagraph.StartTime.ToShortString()));
|
ShowStatus(string.Format(_language.VideoControls.NewTextInsertAtX, newParagraph.StartTime.ToShortString()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void generaeTransparentVideoWithSubtitleToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
using (var saveDialog = new SaveFileDialog
|
||||||
|
{
|
||||||
|
FileName = string.Empty,
|
||||||
|
Filter = "mkv|*.mkv|mp4|*.mp4|mov|*.mov"
|
||||||
|
})
|
||||||
|
{
|
||||||
|
if (saveDialog.ShowDialog(this) != DialogResult.OK)
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -690,6 +690,9 @@
|
|||||||
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>652, 56</value>
|
<value>652, 56</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="toolStripWaveControls.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>652, 56</value>
|
||||||
|
</metadata>
|
||||||
<data name="toolStripButtonWaveformZoomOut.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
<data name="toolStripButtonWaveformZoomOut.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||||
<value>
|
<value>
|
||||||
iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
iVBORw0KGgoAAAANSUhEUgAAABYAAAAWCAYAAADEtGw7AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||||
@ -772,12 +775,12 @@
|
|||||||
<metadata name="imageListBookmarks.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="imageListBookmarks.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>981, 56</value>
|
<value>981, 56</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="contextMenuStripTextBoxListView.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
|
||||||
<value>668, 17</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="contextMenuStripTextBoxSourceView.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="contextMenuStripTextBoxSourceView.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>193, 17</value>
|
<value>193, 17</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<metadata name="contextMenuStripTextBoxListView.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
|
<value>668, 17</value>
|
||||||
|
</metadata>
|
||||||
<metadata name="contextMenuStripEmpty.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
<metadata name="contextMenuStripEmpty.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||||
<value>17, 95</value>
|
<value>17, 95</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
@ -384,6 +384,7 @@ namespace Nikse.SubtitleEdit.Forms.Translate
|
|||||||
comboBoxFormality.Visible = true;
|
comboBoxFormality.Visible = true;
|
||||||
comboBoxFormality.DropDownStyle = ComboBoxStyle.DropDown;
|
comboBoxFormality.DropDownStyle = ComboBoxStyle.DropDown;
|
||||||
comboBoxFormality.Items.Clear();
|
comboBoxFormality.Items.Clear();
|
||||||
|
comboBoxFormality.Items.Add("claude-3-5-sonnet-20240620");
|
||||||
comboBoxFormality.Items.Add("claude-3-opus-20240229");
|
comboBoxFormality.Items.Add("claude-3-opus-20240229");
|
||||||
comboBoxFormality.Items.Add("claude-3-sonnet-20240229");
|
comboBoxFormality.Items.Add("claude-3-sonnet-20240229");
|
||||||
comboBoxFormality.Items.Add("claude-3-haiku-20240307");
|
comboBoxFormality.Items.Add("claude-3-haiku-20240307");
|
||||||
|
Loading…
Reference in New Issue
Block a user