0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

VoiceText Web APIでWindowsで利用すると音声ファイルが開けない場合

Last updated at Posted at 2020-05-29

環境

Windows10

起こったこと

Windowsではデフォルトではcurlが入っていなかったのでわざわざ入れるのもあれかなって思ったからGit bashを開いてcurlを使って
VoiceText Web APIをマニュアル通りに叩いたら音声ファイルはちゃんとダウンロードできたが、実際に開いてみろと開けない。

ファイルを開くと、

ファイルを再生できません。このアイテムのファイル形式がサポートされていないか、ファイル拡張子が正しくないか、ファイルが破損している可能性があります。

って表示される。

ウーン...ウーン...ファ!?ウーン...

解決方法

ん??OSの問題か?って思って自分が持ってるサーバー(linux系)を使ってAPI叩いてみたら無事に再生された。

全く同じコマンドでAPI叩いてんのになんでWindowsの時だけファイルが破損しているかで再生できないのか分からんけど、開発している中でWindowsサーバー使う人あんまいないと思うし、とりあえずCentOSは問題なかったので、ちょっと試しにWindowsで叩いたら再生できなかった人は素直に他のos使えばいける

Windowsのときだけできない理由は知らん(王者の風格)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?