Compare commits

...

2 Commits

Author SHA1 Message Date
Snorky 35c81f89ee Change PATH constructor 2025-06-19 15:28:44 +02:00
Snorky 8640f6a114 Change PATH constructor 2025-06-19 15:28:27 +02:00
2 changed files with 7 additions and 6 deletions

View File

@ -96,4 +96,4 @@ Message transmitted is: HackThePlanet
Il arrive certaines fois que le message ne se déchiffre pas.
Le problème n'est pas necore géré ... :)
Le problème n'est pas encore géré ... :)

View File

@ -1,6 +1,5 @@
#!/usr/bin/env python
from pvrecorder import PvRecorder
from pydub import AudioSegment
from scipy.io import wavfile
@ -11,6 +10,7 @@ import sys, os
import struct
import wave
AUTHOR = "Snorky"
VERSION = 0.1
def detect_frequency(file_path, duration=60):
@ -336,10 +336,11 @@ def welcome():
/ _, _/ __/ /__/ /_/ / / / /_/ / __/ /
/_/ |_|\___/\___/\____/_/ \__,_/\___/_/
Author: Snorky
Author: {AUTHOR}
Version : {VERSION}
""")
def main():
welcome()
@ -348,9 +349,9 @@ def main():
showArgs(parser)
verbosity = False
root_path = "/home/" + os.getlogin() + "/.cache/recorder"
tmp_dir_path = root_path + "/tmp"
wave_dir_path = root_path + "/wave"
root_path = os.path.join(os.path.expanduser('~'), ".cache/recorder")
tmp_dir_path = os.path.join(root_path, "tmp")
wave_dir_path = os.path.join(root_path, "wave")
checkEnv(root_path, tmp_dir_path, wave_dir_path)
if args.show_devices: