def read(fobj, **kwargs):
    """Read a WAV file into a `TimeSeries`

    Parameters
    ----------
    fobj : `file`, `str`
        open file-like object or filename to read from

    **kwargs
        all keyword arguments are passed onto :func:`scipy.io.wavfile.read`

    See also
    --------
    scipy.io.wavfile.read
        for details on how the WAV file is actually read

    Examples
    --------
    >>> from gwpy.timeseries import TimeSeries
    >>> t = TimeSeries.read('test.wav')
    """
    fsamp, arr = wavfile.read(fobj, **kwargs)
    return TimeSeries(arr, sample_rate=fsamp)
Read a WAV file into a `TimeSeries`

    Parameters
    ----------
    fobj : `file`, `str`
        open file-like object or filename to read from

    **kwargs
        all keyword arguments are passed onto :func:`scipy.io.wavfile.read`

    See also
    --------
    scipy.io.wavfile.read
        for details on how the WAV file is actually read

    Examples
    --------
    >>> from gwpy.timeseries import TimeSeries
    >>> t = TimeSeries.read('test.wav')