You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if(NOT EXISTS "${SPEECHSDK_ROOT}/MicrosoftCognitiveServicesSpeech.framework/MicrosoftCognitiveServicesSpeech")
message(FATAL_ERROR "Please set SPEECHSDK_ROOT to point to your extracted Speech SDK. ${SPEECHSDK_ROOT}/MicrosoftCognitiveServicesSpeech.framework/MicrosoftCognitiveServicesSpeech should exist.")
endif()
The cmake process runs fine and the program compiles however it does not matter if i reference library in my CPP file using any of the below include standards, the SDK is never made available.
Can I just say that this is incredibly frustrating. It should not be made so hard to simply install an SDK for a paid service. Why the SDK has not been made available via a packagae manager like vcpkg is beyond me.
The text was updated successfully, but these errors were encountered:
Have been stuck on this for days. I am unable to import the SDK into a C++ project.
I have followed the documentation to the letter.
I am using C++ 20 with cmake on an intel mac using OS Venture 13.3.1. I was able to succesfully download the the SDK and verify its contents.
Folder structure I have for the SDK
-root folder
-MicrosoftCognitiveServicesSpeech.xcframework
-macos-arm64_x86_64
-MicrosoftCognitiveServicesSpeech.framework
-Headers, Modules, Resources, Version & MicrosoftCognitiveServicesSpeech
I looked at the make file thats in the example made available here:
Make file C++ example
And created the exact same in cmake
`
set(SPEECHSDK_ROOT "/Users/joshuakaiser/Desktop/c++packageManager/SpeechSDK-macOS/MicrosoftCognitiveServicesSpeech.xcframework/macos-arm64_x86_64")
Ensure SPEECHSDK_ROOT is valid
if(NOT EXISTS "${SPEECHSDK_ROOT}/MicrosoftCognitiveServicesSpeech.framework/MicrosoftCognitiveServicesSpeech")
message(FATAL_ERROR "Please set SPEECHSDK_ROOT to point to your extracted Speech SDK. ${SPEECHSDK_ROOT}/MicrosoftCognitiveServicesSpeech.framework/MicrosoftCognitiveServicesSpeech should exist.")
endif()
Add the framework search path
target_link_directories(joshsProgram PRIVATE "${SPEECHSDK_ROOT}")
Link against the required framework
target_link_libraries(joshsProgram PRIVATE "-framework MicrosoftCognitiveServicesSpeech")`
The cmake process runs fine and the program compiles however it does not matter if i reference library in my CPP file using any of the below include standards, the SDK is never made available.
#include <speechapi_cxx.h> #include <MicrosoftCognitiveServicesSpeech/speechapi_cxx.h>
Can I just say that this is incredibly frustrating. It should not be made so hard to simply install an SDK for a paid service. Why the SDK has not been made available via a packagae manager like vcpkg is beyond me.
The text was updated successfully, but these errors were encountered: