mirror of
				https://github.com/ijaric/voice_assistant.git
				synced 2025-10-30 23:53:25 +00:00 
			
		
		
		
	feat: [#28] add base tts service
This commit is contained in:
		
							parent
							
								
									62bd0a7b99
								
							
						
					
					
						commit
						90735ca14e
					
				
							
								
								
									
										16
									
								
								src/assistant/lib/tts/services.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								src/assistant/lib/tts/services.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | ||||||
|  | import abc | ||||||
|  | 
 | ||||||
|  | import lib.app.settings as app_settings | ||||||
|  | import lib.tts.models as tts_models | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | class BaseTTSService(abc.ABC): | ||||||
|  |     def __init__( | ||||||
|  |         self, | ||||||
|  |         settings: app_settings.Settings, | ||||||
|  |     ): | ||||||
|  |         self.settings = settings | ||||||
|  | 
 | ||||||
|  |     @abc.abstractmethod | ||||||
|  |     def get_tts(self, tts_request: tts_models.TTSRequestModel) -> tts_models.TTSResponseModel: | ||||||
|  |         raise NotImplementedError() | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user