forked from open-webui/open-webui
		
	feat: tts automatic playback
This commit is contained in:
		
							parent
							
								
									ab3e0635bb
								
							
						
					
					
						commit
						5eff0e5f61
					
				
					 5 changed files with 93 additions and 46 deletions
				
			
		|  | @ -448,6 +448,10 @@ | |||
| 									if ($settings.responseAutoCopy) { | ||||
| 										copyToClipboard(responseMessage.content); | ||||
| 									} | ||||
| 
 | ||||
| 									if ($settings.responseAutoPlayback) { | ||||
| 										document.getElementById(`speak-button-${responseMessage.id}`)?.click(); | ||||
| 									} | ||||
| 								} | ||||
| 							} | ||||
| 						} | ||||
|  | @ -633,6 +637,10 @@ | |||
| 					copyToClipboard(responseMessage.content); | ||||
| 				} | ||||
| 
 | ||||
| 				if ($settings.responseAutoPlayback) { | ||||
| 					document.getElementById(`speak-button-${responseMessage.id}`)?.click(); | ||||
| 				} | ||||
| 
 | ||||
| 				if (autoScroll) { | ||||
| 					window.scrollTo({ top: document.body.scrollHeight }); | ||||
| 				} | ||||
|  |  | |||
|  | @ -462,6 +462,10 @@ | |||
| 									if ($settings.responseAutoCopy) { | ||||
| 										copyToClipboard(responseMessage.content); | ||||
| 									} | ||||
| 
 | ||||
| 									if ($settings.responseAutoPlayback) { | ||||
| 										document.getElementById(`speak-button-${responseMessage.id}`)?.click(); | ||||
| 									} | ||||
| 								} | ||||
| 							} | ||||
| 						} | ||||
|  | @ -647,6 +651,10 @@ | |||
| 					copyToClipboard(responseMessage.content); | ||||
| 				} | ||||
| 
 | ||||
| 				if ($settings.responseAutoPlayback) { | ||||
| 					document.getElementById(`speak-button-${responseMessage.id}`)?.click(); | ||||
| 				} | ||||
| 
 | ||||
| 				if (autoScroll) { | ||||
| 					window.scrollTo({ top: document.body.scrollHeight }); | ||||
| 				} | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek