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

I am getting this error on passing a wav file into readwave function. #64

Open
jackdolgin opened this issue Dec 8, 2019 · 1 comment

Comments

@jackdolgin
Copy link

jackdolgin commented Dec 8, 2019

I originally had the same issue @PranavPable was experiencing (below), and I figured out a solution that I thought I'd document. To make the writeWave output compatible with gl_speech, just set the parameter extensible equal to FALSE.

#Doesn't work:
readWave("foo.wav")) %>%
  writeWave("bar.wav") #by default extensible = TRUE
gl_speech("bar.wav", sampleRateHertz = 8000L)
# 2019-12-07 22:29:51> Request Status Code: 400
# Error: API returned: WAV header indicates an unsupported format.

#Works:
readWave("foo.wav")) %>%
  writeWave("bar.wav", extensible = FALSE)
gl_speech("bar.wav", sampleRateHertz = 8000L)

Originally posted by @PranavPable in #34 (comment)

"I am getting this error on passing a wav file into readwave function.
API returned: WAV header indicates an unsupported format."

@MarkEdmondson1234
Copy link
Collaborator

Thanks, I'll keep this open so I can document it at some point :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants