Inital commit, some scripts to easily mess with piper-tts.
This commit is contained in:
		
						commit
						2dfb7198fb
					
				
					 5 changed files with 110 additions and 0 deletions
				
			
		
							
								
								
									
										16
									
								
								justfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								justfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,16 @@
 | 
			
		|||
default-voice := "en_US-ryan-high"
 | 
			
		||||
 | 
			
		||||
default:
 | 
			
		||||
    just --list
 | 
			
		||||
 | 
			
		||||
dl-voice voice=default-voice:
 | 
			
		||||
    python -m piper.download_voices --download-dir voices {{voice}}
 | 
			
		||||
 | 
			
		||||
start-server voice=default-voice:
 | 
			
		||||
    python3 -m piper.http_server --data-dir voices -m {{voice}}
 | 
			
		||||
 | 
			
		||||
say-now phrase voice=default-voice:
 | 
			
		||||
    echo "{{phrase}}" | piper -m voices/{{voice}} -f - | ffplay -nodisp -autoexit -
 | 
			
		||||
 | 
			
		||||
say phrase voice=default-voice:
 | 
			
		||||
    curl -X POST -H 'Content-Type: application/json' -d '{ "text": "{{phrase}}", "voice": "{{voice}}" }' localhost:5000 | ffplay -nodisp -autoexit -
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue