Skip to content

Add pathlib.Path support all io #950

@vincentqb

Description

@vincentqb

Since pathlib is the standard python library for handling paths since python 3.4, let's add explicit support for pathlib in i/o operations.

  • sox_io
  • sox (won't update)
  • "new" soundfile
  • legacy sox (won't update)
  • apply_effects_file, here, jit does not support union, see comment

There are also datasets who consume paths as string in their constructor, which could be extended to pathlib. (This means adding a conversion at the beginning of each function to convert path to string so the rest can proceed as expected.)

  • cmuarctic
  • commonvoice
  • gtzan
  • librispeech
  • libritts
  • ljspeech
  • speechcommands
  • tedlium
  • vctk
  • yesno
  • see dataset utils consuming a path here

cc offline discussion with @mthrok and @cpuhrsch about #907

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