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": {