fix: improve model setup and native workflows

This commit is contained in:
public-repo-gate
2026-09-13 01:03:00 +03:00
parent 1cefe5b2ee
commit 30dae8b9a3
92 changed files with 13819 additions and 7022 deletions
+4 -2
View File
@@ -58,12 +58,14 @@ public extension Animation {
/// Нажатие. Без отклика кнопка кажется картинкой: нажал, ничего не шевельнулось.
/// 0.97 - предел, за которым сжатие уже видно как трюк.
public struct IrizPressStyle: ButtonStyle {
@Environment(\.accessibilityReduceMotion) private var reduceMotion
public init() {}
public func makeBody(configuration: Configuration) -> some View {
configuration.label
.scaleEffect(configuration.isPressed ? 0.97 : 1)
.animation(.irizQuick, value: configuration.isPressed)
.scaleEffect(configuration.isPressed && !reduceMotion ? 0.97 : 1)
.animation(reduceMotion ? nil : .irizQuick, value: configuration.isPressed)
}
}
@@ -15,7 +15,7 @@
"firstrun.hintAccessibility" = "click here, System Settings will open";
"firstrun.hintInputMonitoring" = "click here, System Settings will open";
"firstrun.hintMicrophone" = "click here";
"firstrun.hintModel" = "click here, about five minutes to download";
"firstrun.hintModel" = "Click below. iriz downloads and installs the model for you.";
"firstrun.inputMonitoring.body" = "macOS calls it \"Input Monitoring\" and warns that I'll be able to see your keystrokes in every app. Those are its words, not mine.";
"firstrun.inputMonitoring.note" = "I need two things: to know you pressed the dictation key, and to notice a phrase typed in the wrong keyboard layout. I see keystrokes only here, on your Mac: I save nothing and send nothing anywhere, and I don't work in password fields at all.\n\nRight after that I'll restart. macOS requires it, nothing is broken.";
"firstrun.inputMonitoring.title" = "One permission left: the keyboard";
@@ -23,10 +23,10 @@
"firstrun.microphone.body" = "Without it I won't hear a word, so let's start there.";
"firstrun.microphone.note" = "The audio is never saved: it lives exactly as long as it takes to work out what you said.";
"firstrun.microphone.title" = "Microphone needed";
"firstrun.model.action" = "Download model";
"firstrun.model.body" = "I turn speech into text right on your Mac, no internet. For that I need a model: half a gigabyte, downloaded once.";
"firstrun.model.note" = "It is deliberately not inside the disk image: the model updates more often than iriz itself. Keep it separate: otherwise an outdated one would ship along with the program.\n\nCarry on while it downloads: you can grant the permissions right now.";
"firstrun.model.title" = "Let's get the speech model";
"firstrun.model.action" = "Download and install Parakeet";
"firstrun.model.body" = "Dictation needs a speech model. The button below downloads Parakeet, installs it in the right folder and selects it for recognition.";
"firstrun.model.note" = "The download is about 500 MB. You need internet access and free disk space. Speed depends on your connection; progress appears here. No need to find or move files yourself.\n\nYou can grant permissions while the model downloads. We will try dictation after installation.";
"firstrun.model.title" = "Install speech recognition";
"firstrun.modelFailedRetry" = "Try again";
"firstrun.modelReady" = "Model is in place";
"firstrun.next" = "Next";
@@ -52,7 +52,7 @@
"firstrun.tryIt.note" = "The text lands in the field below and nowhere else: while this window is open, I type only here.";
"firstrun.tryIt.title" = "Try it right now";
"firstrun.welcome.body" = "Press the key, say a sentence, press it again. The text appears where your cursor was: in an email, in a chat, in the terminal.";
"firstrun.welcome.note" = "It all runs right on your Mac. No audio, no text leaves it.";
"firstrun.welcome.note" = "Before your first dictation, download a speech model using the install button on the next step. Then speech recognition runs on your Mac, without internet access.";
"firstrun.welcome.title" = "You talk, I type";
"firstrun.whenItBreaks.body" = "Text didn't paste? It isn't lost. The badge expands and shows it, and you can copy it from there.";
"firstrun.whenItBreaks.note" = "Misheard a word? Just correct it right in the text. I notice the edit and ask whether to remember it: say yes, and from then on I write it your way. I never put anything into the dictionary on my own.\n\nKey taken by another app? Click it in the settings and set your own shortcut.\n\nThis window, the settings and the history all open from the icon in the menu bar.";
@@ -332,3 +332,78 @@
"snippets.delete.a11y" = "Delete snippet %d";
"snippets.phrase.a11y" = "Snippet phrase %d";
"snippets.text.a11y" = "Snippet text %d";
/* UI Stack: обработка, восстановление и доступность. */
"files.choose" = "Choose files";
"files.destinationExists" = "Text already exists: %@. Open it or rename the source recording before retrying.";
"files.finished" = "Completed: %d of %d.";
"files.language" = "Recording language";
"files.languageAuto" = "Detect automatically";
"files.noSpeech" = "No speech recognized. No text file was created.";
"files.openFailed" = "Could not open %@. Check the file in Finder.";
"files.openText" = "Open text";
"files.preparing" = "loading the model";
"files.reading" = "reading the recording";
"files.refused" = "Files not accepted: %d. Choose readable recordings: %@.";
"files.retry" = "Retry remaining files";
"files.saving" = "saving text";
"files.showDestination" = "Show output folder";
"files.showInFinder" = "Show in Finder";
"files.start" = "Transcribe recordings";
"files.stopAfterCurrent" = "Stop after the current recording";
"files.stopped" = "Queue stopped. You can start the remaining files again.";
"files.stopping" = "Stopping after the current recording…";
"files.transcribing" = "transcribing";
"firstrun.agentModelRequired" = "Choose a model for %@ in prompt settings, then connect the agent here.";
"firstrun.agentSettings" = "Agent settings…";
"firstrun.modelAlreadyDownloading" = "The model is already downloading. Wait for installation to finish.";
"firstrun.modelInstallWhileRecording" = "Finish recording, then try installing the model again.";
"history.clearFailed" = "Could not move %d of %d recordings to the Trash. The others are already in the Trash.";
"history.clearing" = "Preparing and clearing history…";
"history.copiedTimed" = "Copied. The clipboard will clear in 2 minutes.";
"history.copyFailed" = "Could not copy. Try again.";
"history.deleteFailed" = "Could not move the recording to the Trash. Try again.";
"history.readFailed" = "Could not read history. Try opening it again.";
"hud.toggleExpanded" = "Expand or collapse overlay";
"meeting.close" = "Close";
"meeting.discardUnsaved" = "Delete unsaved recording";
"meeting.emptyRecording" = "No audio was recorded";
"meeting.emptyRecording.help" = "Check your microphone and record the meeting again.";
"meeting.openProtocol" = "Open transcript";
"meeting.processingFailed" = "Could not process the meeting";
"meeting.protocolReady" = "Meeting transcript is ready";
"meeting.recordingSaved" = "The recording is saved. Retry processing or find it in Finder.";
"meeting.retryProcessing" = "Retry processing";
"meeting.retrySave" = "Retry saving";
"meeting.saveFailed" = "Could not save the meeting recording";
"meeting.saveFailed.help" = "The audio is still in memory. Free some disk space and retry saving. Deleting the recording cannot be undone.";
"meeting.showRecording" = "Show recording";
"meeting.speakersUnresolved" = "Speakers could not be separated. The text was saved as one turn.";
"meeting.title" = "Meeting";
"meetings.openProtocol" = "Open transcript";
"meetings.showFolder" = "Show meeting folder";
"meetings.speakersUnresolved" = "%@: speakers could not be separated. The text is saved as one turn; check the transcript.";
"meetings.storage" = "Recording in Russian. Audio and transcript are saved in the iriz archive; you can open the completed files here.";
"settings.speechModelInstalled" = "%@: model installed";
"settings.speechModelMissing" = "%@: model not installed";
"settings.speechModelDownloadHelp" = "Speech recognition needs a model on this Mac. Automatic download is available only for Parakeet: about 0.5 GB, once. It becomes the selected recognizer after installation. Audio stays on your device.";
"settings.speechModelSetup" = "Set up speech recognition…";
"settings.downloadParakeet" = "Download Parakeet model…";
"settings.parakeetAlreadyAvailable" = "Parakeet is already installed. Select it and save settings to use it for dictation.";
"settings.selectInstalledParakeet" = "Select installed Parakeet";
"firstrun.model.installLater" = "Download later";
"firstrun.model.alreadyReadyTitle" = "Speech recognition is installed";
"firstrun.model.alreadyReadyBody" = "%@ is ready for dictation. No download needed.";
"firstrun.trialNeedsModel" = "Download a speech model before your first dictation.";
"firstrun.trialModelDownloading" = "The model is still downloading. You can see progress on its setup page.";
"firstrun.trialModelMissing" = "The model is not installed yet. The button below takes you to the download.";
"firstrun.trialOpenModelSetup" = "Set up the model";
"firstrun.model.verifyRepair" = "Check and repair Parakeet";
"speechModel.downloading" = "Downloading speech model";
"speechModel.verifying" = "Verifying downloaded model";
"speechModel.ready" = "Model installed";
"speechModel.failed" = "Download failed";
"speechModel.error.offline" = "No internet connection. Connect to a network and retry the download.";
"speechModel.error.connectionLost" = "The connection was lost. Check your internet connection and retry the download.";
"speechModel.error.timeout" = "The server did not respond in time. Retry the download later.";
"speechModel.error.cancelled" = "The download was cancelled. You can start it again.";
@@ -16,7 +16,7 @@
"firstrun.hintAccessibility" = "点这里,打开系统设置";
"firstrun.hintInputMonitoring" = "点这里,打开系统设置";
"firstrun.hintMicrophone" = "点这里";
"firstrun.hintModel" = "点这里,下载大约要五分钟";
"firstrun.hintModel" = "点击下方按钮,iriz 会自动下载并安装模型。";
"firstrun.inputMonitoring.body" = "macOS 会把它叫做「输入监控」,还会警告你:我能看到所有程序里的按键。这是它的措辞,不是我的。";
"firstrun.inputMonitoring.note" = "我只需要两件事:知道你按下了听写键,以及发现有句话是在错的键盘布局下打的。按键只在你这台 Mac 上看,不保存,不外发,密码框里我根本不工作。\n\n之后我会立刻重启。这是 macOS 的要求,不是出了故障。";
"firstrun.inputMonitoring.title" = "还差按键权限";
@@ -24,10 +24,10 @@
"firstrun.microphone.body" = "没有它我一个字也听不见,所以先从它开始。";
"firstrun.microphone.note" = "声音不会保存到任何地方:它只留到把话听明白为止。";
"firstrun.microphone.title" = "需要麦克风";
"firstrun.model.action" = "下载模型";
"firstrun.model.body" = "语音就在你的 Mac 上识别,不联网。这需要一个模型:500 MB,只下一次。";
"firstrun.model.note" = "它故意不放在磁盘映像里:模型的更新比 iriz 本身勤。分开放::不然随程序一起来的就是过时的那个。\n\n下载的时候继续往下走:权限现在就能给。";
"firstrun.model.title" = "下载语音识别";
"firstrun.model.action" = "下载并安装 Parakeet";
"firstrun.model.body" = "听写需要语音模型。下方按钮会下载 Parakeet,将其安装到正确的文件夹,并选为识别引擎。";
"firstrun.model.note" = "下载大小约为 500 MB,需要网络连接和可用磁盘空间。速度取决于网络,进度会显示在这里。不必手动查找或移动文件。\n\n下载期间可以继续授予权限。安装完成后再尝试听写。";
"firstrun.model.title" = "安装语音识别模型";
"firstrun.modelFailedRetry" = "重试";
"firstrun.modelReady" = "模型已就位";
"firstrun.next" = "下一步";
@@ -53,7 +53,7 @@
"firstrun.tryIt.note" = "文字会出现在下面的输入框里,不会传到别处:这个窗口开着的时候,我只往这里写。";
"firstrun.tryIt.title" = "现在就试试";
"firstrun.welcome.body" = "按一下键,说一句话,再按一下。文字会出现在光标所在的地方:邮件里、聊天里、终端里。";
"firstrun.welcome.note" = "所有处理都在你的 Mac 上完成。声音和文字都不会发到任何地方。";
"firstrun.welcome.note" = "首次听写前,需要下载语音模型。下一步会显示安装按钮。之后语音识别就在你的 Mac 上运行,无需联网。";
"firstrun.welcome.title" = "你说,我来打字";
"firstrun.whenItBreaks.body" = "文字没插进去?它没丢。提示条会展开把它显示出来,可以从那里复制。";
"firstrun.whenItBreaks.note" = "有个词听错了?直接在文字里改掉就行。我会注意到这处修改,并问你要不要记住:你同意了,之后我就照你的写法来。我不会自己往词典里放任何东西。\n\n按键被别的程序占用了?在设置里点它,设你自己的组合。\n\n这个窗口、设置和历史,都从菜单栏的图标打开。";
@@ -333,3 +333,78 @@
"snippets.delete.a11y" = "删除第 %d 条片段";
"snippets.phrase.a11y" = "第 %d 条片段的触发词";
"snippets.text.a11y" = "第 %d 条片段的正文";
/* UI Stack: обработка, восстановление и доступность. */
"files.choose" = "选择文件";
"files.destinationExists" = "文本已存在:%@。请打开它,或重命名原录音后重试。";
"files.finished" = "已完成:%d / %d。";
"files.language" = "录音语言";
"files.languageAuto" = "自动识别";
"files.noSpeech" = "未识别到语音。未创建文本文件。";
"files.openFailed" = "无法打开 %@。请在访达中检查该文件。";
"files.openText" = "打开文本";
"files.preparing" = "正在加载模型";
"files.reading" = "正在读取录音";
"files.refused" = "未接受的文件:%d。请选择可读取的录音:%@。";
"files.retry" = "重试剩余文件";
"files.saving" = "正在保存文本";
"files.showDestination" = "显示结果文件夹";
"files.showInFinder" = "在访达中显示";
"files.start" = "转录录音";
"files.stopAfterCurrent" = "完成当前录音后停止";
"files.stopped" = "队列已停止。你可以重新处理剩余文件。";
"files.stopping" = "完成当前录音后停止…";
"files.transcribing" = "正在转录";
"firstrun.agentModelRequired" = "请在提示词设置中为 %@ 选择模型,然后回到这里连接智能体。";
"firstrun.agentSettings" = "智能体设置…";
"firstrun.modelAlreadyDownloading" = "模型正在下载。请等待安装完成。";
"firstrun.modelInstallWhileRecording" = "请先结束录音,再重试安装模型。";
"history.clearFailed" = "有 %d 条录音未能移到废纸篓,共 %d 条。其余录音已移到废纸篓。";
"history.clearing" = "正在准备并清空历史记录…";
"history.copiedTimed" = "已复制。剪贴板将在 2 分钟后清空。";
"history.copyFailed" = "无法复制。请重试。";
"history.deleteFailed" = "无法将录音移到废纸篓。请重试。";
"history.readFailed" = "无法读取历史记录。请重新打开。";
"hud.toggleExpanded" = "展开或收起浮窗";
"meeting.close" = "关闭";
"meeting.discardUnsaved" = "删除未保存的录音";
"meeting.emptyRecording" = "未录制到声音";
"meeting.emptyRecording.help" = "请检查麦克风,然后重新录制会议。";
"meeting.openProtocol" = "打开会议记录";
"meeting.processingFailed" = "无法处理会议";
"meeting.protocolReady" = "会议记录已就绪";
"meeting.recordingSaved" = "录音已保存。你可以重试处理,或在访达中找到它。";
"meeting.retryProcessing" = "重试处理";
"meeting.retrySave" = "重试保存";
"meeting.saveFailed" = "无法保存会议录音";
"meeting.saveFailed.help" = "声音仍在内存中。请释放磁盘空间后重试保存。删除录音后将无法恢复。";
"meeting.showRecording" = "显示录音";
"meeting.speakersUnresolved" = "无法区分说话人。文本已保存为一段发言。";
"meeting.title" = "会议";
"meetings.openProtocol" = "打开会议记录";
"meetings.showFolder" = "显示会议文件夹";
"meetings.speakersUnresolved" = "%@:无法区分说话人。文本已保存为一段发言,请检查会议记录。";
"meetings.storage" = "俄语录音。音频和会议记录将保存到 iriz 归档中;你可以在这里打开处理完成的文件。";
"settings.speechModelInstalled" = "%@:模型已安装";
"settings.speechModelMissing" = "%@:模型未安装";
"settings.speechModelDownloadHelp" = "语音识别需要在这台 Mac 上安装模型。目前只能自动下载 Parakeet:约 0.5 GB,只需下载一次。安装后会成为所选识别引擎。音频始终留在你的设备上。";
"settings.speechModelSetup" = "设置语音识别…";
"settings.downloadParakeet" = "下载 Parakeet 模型…";
"settings.parakeetAlreadyAvailable" = "Parakeet 已安装。选择它并保存设置,即可用于听写。";
"settings.selectInstalledParakeet" = "选择已安装的 Parakeet";
"firstrun.model.installLater" = "稍后下载";
"firstrun.model.alreadyReadyTitle" = "语音识别模型已安装";
"firstrun.model.alreadyReadyBody" = "%@ 已准备好听写,无需下载。";
"firstrun.trialNeedsModel" = "首次听写前,请先下载语音模型。";
"firstrun.trialModelDownloading" = "模型仍在下载,可在模型设置页面查看进度。";
"firstrun.trialModelMissing" = "模型尚未安装。下方按钮可返回下载页面。";
"firstrun.trialOpenModelSetup" = "前往安装模型";
"firstrun.model.verifyRepair" = "检查并修复 Parakeet";
"speechModel.downloading" = "正在下载语音模型";
"speechModel.verifying" = "正在验证已下载的模型";
"speechModel.ready" = "模型已安装";
"speechModel.failed" = "下载失败";
"speechModel.error.offline" = "没有互联网连接。请连接网络后重试下载。";
"speechModel.error.connectionLost" = "连接已中断。请检查网络后重试下载。";
"speechModel.error.timeout" = "服务器未能及时响应。请稍后重试下载。";
"speechModel.error.cancelled" = "下载已取消。你可以重新开始。";