错误:不兼容的类型:无法转换ServiceCall <inputstream>

时间:2016-11-25 15:51:25

标签: java android-studio android-sdk-2.3

我收到此错误。请帮我弄明白为什么?

  

错误:不兼容的类型:ServiceCall<InputStream>无法转换

play.setOnClickListener(
    new View.OnClickListener() {
        @Override public void onClick(View v) {
            new SynthesisTask().execute(reply.getText().toString());
        }
    }
);     

private class SynthesisTask extends AsyncTask<String, Void, String> {

    @Override protected String doInBackground(String... params) {
        player.playStream(textService.synthesize(params[0], Voice.EN_LISA));
        return "Did synthesize";
    }
}

0 个答案:

没有答案