1
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?

TEDxJP-10k のデータセットのwavをsegmentsに従って分割する

Posted at

下記の再現のため、

ディレクトリ直下のsegments というテキストファイルを用いて、長い音声ファイルをセグメント分割します。(この処理はリポジトリの指示に記載されていないので別途実行する必要があます。)

の部分、記載がなさそうなので、メモ

生成された TEDxJP-10K_v1.1/wav まで移動して

cat ../segments | while read o i s e; do echo sox ./$i.16k.wav ./$o.wav trim $s =$e; done | xargs -P 16 -I {} sh -c "{}"

もう少し時間がかかるかなと思ったけど、わざわざパラレルにする必要なかったかも・・・
まあ、xargsの別の使い方知れたから良しとするか。

1
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
1
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?