Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Install The MicrosoftCognitiveServicesSpeech SDK in C++ No Matter What I Do #2696

Open
centiloquyOriginal opened this issue Dec 8, 2024 · 1 comment
Labels
update needed For items that are in progress but have not been updated

Comments

@centiloquyOriginal
Copy link

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>
image

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.

Copy link

This item has been open without activity for 19 days. Provide a comment on status and remove "update needed" label.

@github-actions github-actions bot added the update needed For items that are in progress but have not been updated label Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
update needed For items that are in progress but have not been updated
Projects
None yet
Development

No branches or pull requests

1 participant