| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -183,23 +183,15 @@ public class PhotoSpeakVideoServiceImpl implements PhotoSpeakVideoService { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            AiPhotoSpeakParam param = new AiPhotoSpeakParam(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            param.setImg(Base64Util.imageUrlToBase64(photoSpeakVideo.getPersonPhotoUrl())); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            param.setVoice_id(photoSpeakVideo.getVoiceMouldSm() == null ? "default" : photoSpeakVideo.getVoiceMouldSm()); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            String voiceMouldSm = photoSpeakVideo.getVoiceMouldSm(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            Integer speakType = 0; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            String voiceType = "default";//默认 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            Integer sex = 1; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            String speakType = null; | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            if (!StringUtils.isBlank(voiceMouldSm)) { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                JSONObject jsonObject = JSON.parseObject(voiceMouldSm); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                speakType = jsonObject.getInteger("speakType"); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                Integer personType = jsonObject.getInteger("personType"); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                speakType = jsonObject.getString("speakType"); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                sex = jsonObject.getInteger("sex"); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                if(speakType != null && speakType > 0){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                    voiceType = EnumSpeakType.getEnum(speakType).getMessage(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                }else if(personType != null && personType > 0){ | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                    voiceType = EnumPersonType.getEnum(personType).getMessage(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			                } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            } | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            param.setVoice_style(EnumSpeakType.getEnum(speakType).getType()); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            param.setVoice_style(speakType == null ? "default" : EnumSpeakType.getEnum(speakType).getType()); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            Integer voiceFrom = photoSpeakVideo.getVoiceFrom(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			            String voiceMaterialUrl = photoSpeakVideo.getVoiceMaterialUrl(); | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |