Skip to content

Commit

Permalink
Export fix for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtrizer committed Mar 1, 2024
1 parent c74fc05 commit da190d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/cpp/piperlib.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using namespace piper;

#if defined(_WIN32) && !defined(__MINGW32__)
# define PIPER_API __declspec(dllimport)
# define PIPER_API __declspec(dllexport)
#else
# define PIPER_API __attribute__ ((visibility ("default")))
#endif
Expand Down Expand Up @@ -39,5 +39,4 @@ extern "C" {
PIPER_API void loadVoice(PiperConfig* config, const char* modelPath, const char* modelConfigPath, Voice* voice, SpeakerId* speakerId);
PIPER_API void textToAudio(PiperConfig* config, Voice* voice, const char* text, SynthesisResult* result, AudioCallback audioCallback);
PIPER_API void textToWavFile(PiperConfig* config, Voice* voice, const char* text, const char* audioFile, SynthesisResult* result);

}

0 comments on commit da190d6

Please sign in to comment.