Skip to content

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

Description

@jackdolgin

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."

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions