feat: 新增语音转文字(ASR)功能
- 后端:新增 /api/audio/transcribe 接口,调用 Ollama whisper 进行语音识别 - 前端:新增 AudioTranscribePage.vue 页面,支持 MP3/WAV/M4A/OGG/FLAC 等格式 - 注册路由、工具卡片、智能助手欢迎语更新 Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -15,11 +15,11 @@ $BackendPort = 10232
|
||||
$FrontendPort = 10231
|
||||
$KnowledgeServicePort = 10233
|
||||
$RepoDir = Split-Path -Parent $MyInvocation.MyCommand.Path
|
||||
$AppDir = Join-Path $RepoDir "eai_ap_app"
|
||||
$AppDir = Join-Path $RepoDir "eai_agentplatform"
|
||||
$BackendDir = Join-Path $AppDir "backend-go"
|
||||
$FrontendDir = Join-Path $AppDir "frontend"
|
||||
$KnowledgeServiceDir = Join-Path $AppDir "knowledge_service"
|
||||
$BackendBin = Join-Path $BackendDir "bin\eaisalestrain-server.exe"
|
||||
$BackendBin = Join-Path $BackendDir "bin\eai_agentplatform-server.exe"
|
||||
$DebugLogDir = Join-Path $RepoDir "debuglog"
|
||||
$null = New-Item -ItemType Directory -Force -Path $DebugLogDir
|
||||
|
||||
@@ -34,7 +34,7 @@ $BackendPidFile = Join-Path $DebugLogDir "backend.pid"
|
||||
$FrontendPidFile = Join-Path $DebugLogDir "frontend.pid"
|
||||
$KnowledgePidFile = Join-Path $DebugLogDir "knowledge.pid"
|
||||
|
||||
$KnownProcessNames = @("eaisalestrain-server", "node", "npm", "npm.cmd", "python", "python3")
|
||||
$KnownProcessNames = @("eai_agentplatform-server", "node", "npm", "npm.cmd", "python", "python3")
|
||||
$StartedProcesses = @()
|
||||
|
||||
function Write-Step {
|
||||
@@ -92,7 +92,7 @@ function Resolve-Port {
|
||||
foreach ($portPid in $pids) {
|
||||
$proc = Get-Process -Id $portPid -ErrorAction SilentlyContinue
|
||||
$name = Get-ProcessNameSafe -Process $proc
|
||||
if (($null -ne $proc) -and (($KnownProcessNames -contains $proc.ProcessName) -or ($name -like "eaisalestrain-server*"))) {
|
||||
if (($null -ne $proc) -and (($KnownProcessNames -contains $proc.ProcessName) -or ($name -like "eai_agentplatform-server*"))) {
|
||||
Stop-Process -Id $portPid -Force
|
||||
Write-Host (" stopped {0} (PID {1})" -f $name, $portPid)
|
||||
} else {
|
||||
@@ -157,7 +157,7 @@ function Cleanup-StartedProcesses {
|
||||
}
|
||||
|
||||
try {
|
||||
Write-Host "==> eaisalestrain Windows dev launcher"
|
||||
Write-Host "==> eai_agentplatform Windows dev launcher"
|
||||
Write-Host (" repo : {0}" -f $RepoDir)
|
||||
Write-Host (" backend : {0} (port {1})" -f $BackendDir, $BackendPort)
|
||||
Write-Host (" frontend : {0} (port {1})" -f $FrontendDir, $FrontendPort)
|
||||
|
||||
Reference in New Issue
Block a user