@@ -7,12 +7,11 @@ use tokio::sync::mpsc;
77use tokio_util:: sync:: CancellationToken ;
88mod aliyun;
99mod tencent_cloud;
10- mod tencent_cloud_streaming;
1110mod voiceapi;
1211
1312pub use aliyun:: AliyunTtsClient ;
1413pub use tencent_cloud:: TencentCloudTtsClient ;
15- pub use tencent_cloud_streaming:: TencentCloudStreamingTtsClient ;
14+ // pub use tencent_cloud_streaming::TencentCloudStreamingTtsClient;
1615pub use voiceapi:: VoiceApiTtsClient ;
1716
1817#[ derive( Clone , Default ) ]
@@ -33,8 +32,6 @@ pub type SynthesisEventReceiver = mpsc::UnboundedReceiver<Result<SynthesisEvent>
3332pub enum SynthesisType {
3433 #[ serde( rename = "tencent" ) ]
3534 TencentCloud ,
36- #[ serde( rename = "tencent_streaming" ) ]
37- TencentCloudStreaming ,
3835 #[ serde( rename = "voiceapi" ) ]
3936 VoiceApi ,
4037 #[ serde( rename = "aliyun" ) ]
@@ -47,7 +44,6 @@ impl std::fmt::Display for SynthesisType {
4744 fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
4845 match self {
4946 SynthesisType :: TencentCloud => write ! ( f, "tencent" ) ,
50- SynthesisType :: TencentCloudStreaming => write ! ( f, "tencent_streaming" ) ,
5147 SynthesisType :: VoiceApi => write ! ( f, "voiceapi" ) ,
5248 SynthesisType :: Aliyun => write ! ( f, "aliyun" ) ,
5349 SynthesisType :: Other ( provider) => write ! ( f, "{}" , provider) ,
@@ -65,7 +61,6 @@ impl<'de> Deserialize<'de> for SynthesisType {
6561 "tencent" => Ok ( SynthesisType :: TencentCloud ) ,
6662 "voiceapi" => Ok ( SynthesisType :: VoiceApi ) ,
6763 "aliyun" => Ok ( SynthesisType :: Aliyun ) ,
68- "tencent_streaming" => Ok ( SynthesisType :: TencentCloudStreaming ) ,
6964 _ => Ok ( SynthesisType :: Other ( value) ) ,
7065 }
7166 }
@@ -255,10 +250,6 @@ pub fn create_synthesis_client(option: SynthesisOption) -> Result<Box<dyn Synthe
255250 let client = TencentCloudTtsClient :: new ( option) ;
256251 Ok ( Box :: new ( client) )
257252 }
258- SynthesisType :: TencentCloudStreaming => {
259- let client = TencentCloudStreamingTtsClient :: new ( option) ;
260- Ok ( Box :: new ( client) )
261- }
262253 SynthesisType :: VoiceApi => {
263254 let client = VoiceApiTtsClient :: new ( option) ;
264255 Ok ( Box :: new ( client) )
0 commit comments