new voice
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m19s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m19s
				
			This commit is contained in:
		
							parent
							
								
									0da9a17570
								
							
						
					
					
						commit
						e1d4b545d6
					
				| @ -14,9 +14,9 @@ export const config = { | |||||||
|    |    | ||||||
|   // 音频配置
 |   // 音频配置
 | ||||||
|   audio: { |   audio: { | ||||||
|     model: 'speech-02-hd', |     model: 'speech-01-turbo', | ||||||
|     voiceSetting: { |     voiceSetting: { | ||||||
|       voice_id: 'yantu-qinggang-2', |       voice_id: 'tianbing_xinggan_03', | ||||||
|       speed: 1, |       speed: 1, | ||||||
|       vol: 1, |       vol: 1, | ||||||
|       pitch: 0, |       pitch: 0, | ||||||
|  | |||||||
| @ -796,10 +796,13 @@ class WebRTCChat { | |||||||
| 
 | 
 | ||||||
|     async startCall() { |     async startCall() { | ||||||
|         try { |         try { | ||||||
|  |             // 添加更详细的错误处理
 | ||||||
|  |             console.log('开始请求麦克风权限...'); | ||||||
|             this.localStream = await navigator.mediaDevices.getUserMedia({ |             this.localStream = await navigator.mediaDevices.getUserMedia({ | ||||||
|                 video: false, |                 video: false, | ||||||
|                 audio: true |                 audio: true | ||||||
|             }); |             }); | ||||||
|  |             console.log('麦克风权限获取成功'); | ||||||
|              |              | ||||||
|             await this.createPeerConnection(); |             await this.createPeerConnection(); | ||||||
|             this.startVoiceRecording() |             this.startVoiceRecording() | ||||||
|  | |||||||
| @ -13,11 +13,11 @@ export async function playVideoWithAudio(videoPath, text) { | |||||||
|     apiKey: minimaxiConfig.apiKey, |     apiKey: minimaxiConfig.apiKey, | ||||||
|     groupId: minimaxiConfig.groupId, |     groupId: minimaxiConfig.groupId, | ||||||
|     body: { |     body: { | ||||||
|       model: 'speech-02-hd', |       model: 'speech-01-turbo', | ||||||
|       text, |       text, | ||||||
|       output_format: 'hex', // 流式场景必须使用hex
 |       output_format: 'hex', // 流式场景必须使用hex
 | ||||||
|       voice_setting: { |       voice_setting: { | ||||||
|         voice_id: 'yantu-qinggang', |         voice_id: 'tianbing_xinggan_03', | ||||||
|         speed: 1 |         speed: 1 | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Song367
						Song367