Andrewcpu/elevenlabs-api

Unsupported payload value type for speech to speech endpoints

Closed this issue · 0 comments

Speech to speech endpoints will throw:
Exception in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Unsupported payload value type
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.handleMultipartBodyRequest(ElevenNetworkUtil.java:103)
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.handleBodyRequest(ElevenNetworkUtil.java:118)
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.getRequest(ElevenNetworkUtil.java:134)
at net.andrewcpu.elevenlabs.util.ElevenNetworkUtil.sendRequest(ElevenNetworkUtil.java:145)
at net.andrewcpu.elevenlabs.api.ElevenLabsAPI.sendRequest(ElevenLabsAPI.java:11)
at net.andrewcpu.elevenlabs.api.impl.SpeechToSpeechAPI.generateSpeechToSpeech(SpeechToSpeechAPI.java:18)
at net.andrewcpu.elevenlabs.model.voice.Voice.speechToSpeech(Voice.java:245)

I don't have a Speech to Speech model available to my account, so once I fix this I will not be able to confirm whether or not the fix will work.