From 5ec6663ee7f490164a6a40dce0db43030a8787e4 Mon Sep 17 00:00:00 2001 From: Kodai Aoyama Date: Thu, 23 May 2024 22:48:48 +0900 Subject: [PATCH] fix --- package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/src/module/transcription_amivoice.rs | 4 ++-- src-tauri/tauri.conf.json | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4c134b3..a79021d 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "lycoris", "private": true, - "version": "0.9.15", + "version": "0.9.16", "type": "module", "license": "MIT", "engines": { diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock index 1795c18..00264f4 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -2780,7 +2780,7 @@ dependencies = [ [[package]] name = "lycoris" -version = "0.9.15" +version = "0.9.16" dependencies = [ "chrono", "core-graphics 0.23.1", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 41c3351..5caa512 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lycoris" -version = "0.9.15" +version = "0.9.16" description = "Lycoris is an offline voice memo" authors = ["solaoi"] license = "MIT" diff --git a/src-tauri/src/module/transcription_amivoice.rs b/src-tauri/src/module/transcription_amivoice.rs index d2524f6..688167c 100644 --- a/src-tauri/src/module/transcription_amivoice.rs +++ b/src-tauri/src/module/transcription_amivoice.rs @@ -82,8 +82,8 @@ impl TranscriptionAmivoice { let cursor = Cursor::new(buffer); let mut reader = WavReader::new(cursor)?; let spec = WavSpec { - channels: 1, - sample_rate: 48000, + channels: reader.spec().channels, + sample_rate: reader.spec().sample_rate, bits_per_sample: 16, sample_format: SampleFormat::Int, }; diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 120100a..7396f46 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -8,7 +8,7 @@ }, "package": { "productName": "Lycoris", - "version": "0.9.15" + "version": "0.9.16" }, "tauri": { "allowlist": {