Init.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/target
|
||||
Generated
+25
@@ -0,0 +1,25 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "hound"
|
||||
version = "3.5.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f"
|
||||
|
||||
[[package]]
|
||||
name = "morse_rs"
|
||||
version = "0.1.41"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "41d46e1e52cd763ce44a9d8c6895d5ba4e045012e3a4218bbb36c78b781a8d1d"
|
||||
dependencies = [
|
||||
"hound",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "text-to-morse-audio"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"morse_rs",
|
||||
]
|
||||
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "text-to-morse-audio"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
morse_rs = "0.1.41"
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
use morse_rs::{to_morse, write_morse_to_file};
|
||||
|
||||
fn main() {
|
||||
let my_message = "attack at noon";
|
||||
let morse = to_morse(my_message);
|
||||
|
||||
write_morse_to_file("my_message.wav", &morse, 150.0, 200.0);
|
||||
}
|
||||
Reference in New Issue
Block a user