forked from jan-leila/nix-config
		
	installed open wake word
This commit is contained in:
		
							parent
							
								
									2e8eba7709
								
							
						
					
					
						commit
						2188954b79
					
				
					 2 changed files with 32 additions and 18 deletions
				
			
		|  | @ -6,29 +6,42 @@ | |||
|   options.services.wyoming.enable = lib.mkEnableOption "should wyoming be enabled on this device"; | ||||
|   config = lib.mkIf config.services.wyoming.enable (lib.mkMerge [ | ||||
|     { | ||||
|       services.wyoming.piper = { | ||||
|         servers = { | ||||
|           "en" = { | ||||
|             enable = true; | ||||
|             # see https://github.com/rhasspy/rhasspy3/blob/master/programs/tts/piper/script/download.py | ||||
|             voice = "en-us-amy-low"; | ||||
|             uri = "tcp://0.0.0.0:10200"; | ||||
|             speaker = 0; | ||||
|       services.wyoming = { | ||||
|         # Text to speech | ||||
|         piper = { | ||||
|           servers = { | ||||
|             "en" = { | ||||
|               enable = true; | ||||
|               # see https://github.com/rhasspy/rhasspy3/blob/master/programs/tts/piper/script/download.py | ||||
|               voice = "en-us-amy-low"; | ||||
|               uri = "tcp://0.0.0.0:10200"; | ||||
|               speaker = 0; | ||||
|             }; | ||||
|           }; | ||||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|       services.wyoming.faster-whisper = { | ||||
|         servers = { | ||||
|           "en" = { | ||||
|             enable = true; | ||||
|             # see https://github.com/rhasspy/rhasspy3/blob/master/programs/asr/faster-whisper/script/download.py | ||||
|             model = "tiny-int8"; | ||||
|             language = "en"; | ||||
|             uri = "tcp://0.0.0.0:10300"; | ||||
|             device = "cpu"; | ||||
|         # Speech to text | ||||
|         faster-whisper = { | ||||
|           servers = { | ||||
|             "en" = { | ||||
|               enable = true; | ||||
|               # see https://github.com/rhasspy/rhasspy3/blob/master/programs/asr/faster-whisper/script/download.py | ||||
|               model = "tiny-int8"; | ||||
|               language = "en"; | ||||
|               uri = "tcp://0.0.0.0:10300"; | ||||
|               device = "cpu"; | ||||
|             }; | ||||
|           }; | ||||
|         }; | ||||
| 
 | ||||
|         openwakeword = { | ||||
|           enable = true; | ||||
|           uri = "tcp://0.0.0.0:10400"; | ||||
|           preloadModels = [ | ||||
|             "ok_nabu" | ||||
|           ]; | ||||
|           # TODO: custom models | ||||
|         }; | ||||
|       }; | ||||
| 
 | ||||
|       # needs access to /proc/cpuinfo | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue