Compare commits
	
		
			2 Commits
		
	
	
		
			9ffc2690c4
			...
			35c81f89ee
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 35c81f89ee | ||
|   | 8640f6a114 | 
|  | @ -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é ... :) | ||||
							
								
								
									
										11
									
								
								recorder.py
								
								
								
								
							
							
						
						
									
										11
									
								
								recorder.py
								
								
								
								
							|  | @ -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: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user