| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -112,7 +112,7 @@ class HttpReadAloudService : BaseReadAloudService(), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private fun getAudioBody(content: String): Map<String, String> { | 
					 | 
					 | 
					 | 
					    private fun getAudioBody(content: String): Map<String, String> { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return mapOf( | 
					 | 
					 | 
					 | 
					        return mapOf( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Pair("tex", encodeTwo(content)), | 
					 | 
					 | 
					 | 
					            Pair("tex", encodeTwo(content)), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Pair("spd", ((AppConfig.ttsSpeechRate + 5) / 5).toString()), | 
					 | 
					 | 
					 | 
					            Pair("spd", ((AppConfig.ttsSpeechRate + 5) / 10 + 4).toString()), | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Pair("per", getPrefString(PreferKey.ttsSpeechPer) ?: "0"), | 
					 | 
					 | 
					 | 
					            Pair("per", getPrefString(PreferKey.ttsSpeechPer) ?: "0"), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Pair("cuid", "baidu_speech_demo"), | 
					 | 
					 | 
					 | 
					            Pair("cuid", "baidu_speech_demo"), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            Pair("idx", "1"), | 
					 | 
					 | 
					 | 
					            Pair("idx", "1"), | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -151,9 +151,6 @@ class HttpReadAloudService : BaseReadAloudService(), | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    override fun upSpeechRate(reset: Boolean) { | 
					 | 
					 | 
					 | 
					    override fun upSpeechRate(reset: Boolean) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        job?.cancel() | 
					 | 
					 | 
					 | 
					        job?.cancel() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        mediaPlayer.reset() | 
					 | 
					 | 
					 | 
					        mediaPlayer.reset() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        for (i in 0 until nowSpeak) { | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            contentList.removeAt(0) | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        } | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        nowSpeak = 0 | 
					 | 
					 | 
					 | 
					        nowSpeak = 0 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        playingIndex = -1 | 
					 | 
					 | 
					 | 
					        playingIndex = -1 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        play() | 
					 | 
					 | 
					 | 
					        play() | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |