Compare commits
	
		
			No commits in common. "35c81f89ee43d9161cf84345cd3f9d948387f7ba" and "9ffc2690c40cc9248b4fe98514d959305cda56f0" have entirely different histories.
		
	
	
		
			35c81f89ee
			...
			9ffc2690c4
		
	
		
|  | @ -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 encore géré ... :) | ||||
| Le problème n'est pas necore géré ... :) | ||||
							
								
								
									
										11
									
								
								recorder.py
								
								
								
								
							
							
						
						
									
										11
									
								
								recorder.py
								
								
								
								
							|  | @ -1,5 +1,6 @@ | |||
| #!/usr/bin/env python | ||||
| 
 | ||||
| 
 | ||||
| from pvrecorder import PvRecorder | ||||
| from pydub import AudioSegment | ||||
| from scipy.io import wavfile | ||||
|  | @ -10,7 +11,6 @@ import sys, os | |||
| import struct | ||||
| import wave | ||||
| 
 | ||||
| AUTHOR = "Snorky" | ||||
| VERSION = 0.1 | ||||
| 
 | ||||
| def detect_frequency(file_path, duration=60): | ||||
|  | @ -336,11 +336,10 @@ def welcome(): | |||
|  / _, _/  __/ /__/ /_/ / /  / /_/ /  __/ /     | ||||
| /_/ |_|\___/\___/\____/_/   \__,_/\___/_/      | ||||
| 
 | ||||
|                 Author: {AUTHOR} | ||||
|                 Author: Snorky | ||||
|                 Version : {VERSION}                                 | ||||
| """) | ||||
| 
 | ||||
| 
 | ||||
| def main(): | ||||
| 
 | ||||
|     welcome() | ||||
|  | @ -349,9 +348,9 @@ def main(): | |||
|     showArgs(parser) | ||||
| 
 | ||||
|     verbosity = False | ||||
|     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") | ||||
|     root_path = "/home/" + os.getlogin() + "/.cache/recorder" | ||||
|     tmp_dir_path = root_path + "/tmp" | ||||
|     wave_dir_path = root_path + "/wave" | ||||
|     checkEnv(root_path, tmp_dir_path, wave_dir_path) | ||||
|   | ||||
|     if args.show_devices: | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user