J
jinheking
Unregistered / Unconfirmed
GUEST, unregistred user!
我使用speech sdk 5.1的时候有这样一句话
var
cpFileStream:TSpFileStream;
MySpvoice:TSpVoice;
begin
; ;MySpvoice:=TSpVoice.Create(Self);
; ; cpFileStream:=TSpFileStream.Create(Self);
; ; cpFileStream.Format.Type_:=SAFT32kHz16BitStereo ;
; ; cpFileStream.Open('c:/11.wav',SSFMCreateForWrite,False);
; ; MySpvoice.AllowAudioOutputFormatChangesOnNextSet:=False;
; ; MySpvoice.AudioOutputStream:=cpFileStream;
end;
执行最后一句的时候有这样的提示:
[Error] Unit1.pas(63): Incompatible types: 'ISpeechBaseStream' and 'TSpFileStream'
我怎么强制转换类型?
var
cpFileStream:TSpFileStream;
MySpvoice:TSpVoice;
begin
; ;MySpvoice:=TSpVoice.Create(Self);
; ; cpFileStream:=TSpFileStream.Create(Self);
; ; cpFileStream.Format.Type_:=SAFT32kHz16BitStereo ;
; ; cpFileStream.Open('c:/11.wav',SSFMCreateForWrite,False);
; ; MySpvoice.AllowAudioOutputFormatChangesOnNextSet:=False;
; ; MySpvoice.AudioOutputStream:=cpFileStream;
end;
执行最后一句的时候有这样的提示:
[Error] Unit1.pas(63): Incompatible types: 'ISpeechBaseStream' and 'TSpFileStream'
我怎么强制转换类型?