@榮豪 蔡 Thanks for the question, You may need to install the "@types/microsoft-cognitiveservices-speech-sdk" package in order to provide the necessary type definitions for the SDK. You can do this by running the command: "npm install @types/microsoft-cognitiveservices-speech-sdk"
You should also check that the type definition file for the package is being properly included in your TypeScript project. Make sure that you have the correct path for the package in your "tsconfig.json" file under "include" or "files" and check the version of the package and the type definition package match.
Also it would be helpful if you can share your ts-config.json file so we can assist you better.