SYMBOL INDEX (7821 symbols across 1014 files) FILE: audio/paddleaudio/_extension.py function dl_open_guard (line 17) | def dl_open_guard(): function resolve_library_path (line 31) | def resolve_library_path(path: str) -> str: class _Ops (line 35) | class _Ops(types.ModuleType): method __init__ (line 38) | def __init__(self): method load_library (line 42) | def load_library(self, path): function _get_lib_path (line 69) | def _get_lib_path(lib: str): function _load_lib (line 75) | def _load_lib(lib: str) -> bool: function _init_ffmpeg (line 114) | def _init_ffmpeg(): function _init_extension (line 139) | def _init_extension(): FILE: audio/paddleaudio/_internal/module_utils.py function is_module_available (line 10) | def is_module_available(*modules: str) -> bool: function requires_module (line 20) | def requires_module(*modules: str): function deprecated (line 47) | def deprecated(direction: str, version: Optional[str]=None): function is_kaldi_available (line 69) | def is_kaldi_available(): function requires_kaldi (line 76) | def requires_kaldi(): function _check_soundfile_importable (line 95) | def _check_soundfile_importable(): function is_soundfile_available (line 111) | def is_soundfile_available(): function requires_soundfile (line 115) | def requires_soundfile(): function is_sox_available (line 133) | def is_sox_available(): function requires_sox (line 141) | def requires_sox(): FILE: audio/paddleaudio/backends/common.py class AudioInfo (line 4) | class AudioInfo: method __init__ (line 33) | def __init__( method __str__ (line 46) | def __str__(self): FILE: audio/paddleaudio/backends/no_backend.py function load (line 12) | def load( function save (line 23) | def save(filepath: str, function info (line 31) | def info(filepath: str) -> None: FILE: audio/paddleaudio/backends/soundfile_backend.py function resample (line 45) | def resample(y: np.ndarray, function to_mono (line 76) | def to_mono(y: np.ndarray, merge_type: str='average') -> np.ndarray: function soundfile_load_ (line 124) | def soundfile_load_(file: os.PathLike, function normalize (line 152) | def normalize(y: np.ndarray, norm_type: str='linear', function soundfile_save (line 180) | def soundfile_save(y: np.ndarray, sr: int, file: os.PathLike) -> None: function soundfile_load (line 207) | def soundfile_load( function _get_subtype_for_wav (line 263) | def _get_subtype_for_wav(dtype: paddle.dtype, function _get_subtype_for_sphere (line 308) | def _get_subtype_for_sphere(encoding: str, bits_per_sample: int): function _get_subtype (line 322) | def _get_subtype(dtype: paddle.dtype, function save (line 348) | def save( function load (line 495) | def load( function _get_bit_depth (line 624) | def _get_bit_depth(subtype): function _get_encoding (line 648) | def _get_encoding(format: str, subtype: str): function info (line 654) | def info(filepath: str, format: Optional[str]=None) -> AudioInfo: FILE: audio/paddleaudio/backends/sox_io_backend.py function _fail_info (line 15) | def _fail_info(filepath: str, format: Optional[str]) -> AudioInfo: function _fail_info_fileobj (line 19) | def _fail_info_fileobj(fileobj, format: Optional[str]) -> AudioInfo: function _fail_load (line 24) | def _fail_load( function _fail_load_fileobj (line 34) | def _fail_load_fileobj(fileobj, *args, **kwargs): function load (line 45) | def load( function save (line 72) | def save( function info (line 94) | def info( FILE: audio/paddleaudio/backends/utils.py function list_audio_backends (line 21) | def list_audio_backends() -> List[str]: function set_audio_backend (line 35) | def set_audio_backend(backend: Optional[str]): function _init_audio_backend (line 60) | def _init_audio_backend(): function get_audio_backend (line 71) | def get_audio_backend() -> Optional[str]: FILE: audio/paddleaudio/compliance/kaldi.py function _get_epsilon (line 38) | def _get_epsilon(dtype): function _next_power_of_2 (line 42) | def _next_power_of_2(x: int) -> int: function _get_strided (line 46) | def _get_strided(waveform: Tensor, function _feature_window_function (line 72) | def _feature_window_function( function _get_log_energy (line 96) | def _get_log_energy(strided_input: Tensor, epsilon: Tensor, function _get_waveform_and_window_properties (line 106) | def _get_waveform_and_window_properties( function _get_window (line 136) | def _get_window(waveform: Tensor, function _subtract_column_mean (line 198) | def _subtract_column_mean(tensor: Tensor, subtract_mean: bool) -> Tensor: function spectrogram (line 205) | def spectrogram(waveform: Tensor, function _inverse_mel_scale_scalar (line 268) | def _inverse_mel_scale_scalar(mel_freq: float) -> float: function _inverse_mel_scale (line 272) | def _inverse_mel_scale(mel_freq: Tensor) -> Tensor: function _mel_scale_scalar (line 276) | def _mel_scale_scalar(freq: float) -> float: function _mel_scale (line 280) | def _mel_scale(freq: Tensor) -> Tensor: function _vtln_warp_freq (line 284) | def _vtln_warp_freq(vtln_low_cutoff: float, function _vtln_warp_mel_freq (line 316) | def _vtln_warp_mel_freq(vtln_low_cutoff: float, function _get_mel_banks (line 327) | def _get_mel_banks(num_bins: int, function fbank (line 401) | def fbank(waveform: Tensor, function _get_dct_matrix (line 508) | def _get_dct_matrix(n_mfcc: int, n_mels: int) -> Tensor: function _get_lifter_coeffs (line 515) | def _get_lifter_coeffs(n_mfcc: int, cepstral_lifter: float) -> Tensor: function mfcc (line 521) | def mfcc(waveform: Tensor, FILE: audio/paddleaudio/compliance/librosa.py function _pad_center (line 50) | def _pad_center(data: np.ndarray, size: int, axis: int=-1, function _split_frames (line 71) | def _split_frames(x: np.ndarray, function _check_audio (line 119) | def _check_audio(y, mono=True) -> bool: function hz_to_mel (line 146) | def hz_to_mel(frequencies: Union[float, List[float], np.ndarray], function mel_to_hz (line 186) | def mel_to_hz(mels: Union[float, List[float], np.ndarray], function mel_frequencies (line 224) | def mel_frequencies(n_mels: int=128, function fft_frequencies (line 248) | def fft_frequencies(sr: int, n_fft: int) -> np.ndarray: function compute_fbank_matrix (line 261) | def compute_fbank_matrix(sr: int, function stft (line 328) | def stft(x: np.ndarray, function power_to_db (line 402) | def power_to_db(spect: np.ndarray, function mfcc (line 448) | def mfcc(x: np.ndarray, function melspectrogram (line 486) | def melspectrogram(x: np.ndarray, function spectrogram (line 551) | def spectrogram(x: np.ndarray, function mu_encode (line 587) | def mu_encode(x: np.ndarray, mu: int=255, quantized: bool=True) -> np.nd... function mu_decode (line 605) | def mu_decode(y: np.ndarray, mu: int=255, quantized: bool=True) -> np.nd... function _randint (line 626) | def _randint(high: int) -> int: function depth_augment (line 634) | def depth_augment(y: np.ndarray, function adaptive_spect_augment (line 659) | def adaptive_spect_augment(spect: np.ndarray, function spect_augment (line 702) | def spect_augment(spect: np.ndarray, function random_crop1d (line 751) | def random_crop1d(y: np.ndarray, crop_len: int) -> np.ndarray: function random_crop2d (line 768) | def random_crop2d(s: np.ndarray, crop_len: int, FILE: audio/paddleaudio/datasets/dataset.py class AudioClassificationDataset (line 34) | class AudioClassificationDataset(paddle.io.Dataset): method __init__ (line 39) | def __init__(self, method _get_data (line 66) | def _get_data(self, input_file: str): method _convert_to_record (line 69) | def _convert_to_record(self, idx): method __getitem__ (line 91) | def __getitem__(self, idx): method __len__ (line 99) | def __len__(self): FILE: audio/paddleaudio/datasets/esc50.py class ESC50 (line 26) | class ESC50(AudioClassificationDataset): method __init__ (line 108) | def __init__(self, method _get_meta_info (line 126) | def _get_meta_info(self) -> List[collections.namedtuple]: method _get_data (line 133) | def _get_data(self, mode: str, split: int) -> Tuple[List[str], List[in... FILE: audio/paddleaudio/datasets/gtzan.py class GTZAN (line 27) | class GTZAN(AudioClassificationDataset): method __init__ (line 52) | def __init__(self, method _get_meta_info (line 77) | def _get_meta_info(self) -> List[collections.namedtuple]: method _get_data (line 84) | def _get_data(self, mode, seed, n_folds, FILE: audio/paddleaudio/datasets/hey_snips.py class HeySnips (line 25) | class HeySnips(AudioClassificationDataset): method __init__ (line 29) | def __init__(self, method _get_meta_info (line 44) | def _get_meta_info(self, mode) -> List[collections.namedtuple]: method _get_data (line 60) | def _get_data(self, mode: str) -> Tuple[List[str], List[int]]: FILE: audio/paddleaudio/datasets/rirs_noises.py class OpenRIRNoise (line 32) | class OpenRIRNoise(Dataset): method __init__ (line 47) | def __init__(self, method _get_data (line 74) | def _get_data(self): method _convert_to_record (line 100) | def _convert_to_record(self, idx: int): method _get_chunks (line 120) | def _get_chunks(seg_dur, audio_id, audio_duration): method _get_audio_info (line 129) | def _get_audio_info(self, wav_file: str, method generate_csv (line 153) | def generate_csv(self, method prepare_data (line 177) | def prepare_data(self): method __getitem__ (line 197) | def __getitem__(self, idx): method __len__ (line 200) | def __len__(self): FILE: audio/paddleaudio/datasets/tess.py class TESS (line 27) | class TESS(AudioClassificationDataset): method __init__ (line 61) | def __init__(self, method _get_meta_info (line 86) | def _get_meta_info(self, files) -> List[collections.namedtuple]: method _get_data (line 93) | def _get_data(self, mode, seed, n_folds, FILE: audio/paddleaudio/datasets/urban_sound.py class UrbanSound8K (line 26) | class UrbanSound8K(AudioClassificationDataset): method __init__ (line 56) | def __init__(self, method _get_meta_info (line 74) | def _get_meta_info(self): method _get_data (line 81) | def _get_data(self, mode: str, split: int) -> Tuple[List[str], List[in... FILE: audio/paddleaudio/datasets/voxceleb.py class VoxCeleb (line 35) | class VoxCeleb(Dataset): method __init__ (line 81) | def __init__( method _get_data (line 130) | def _get_data(self): method _convert_to_record (line 187) | def _convert_to_record(self, idx: int): method _get_chunks (line 223) | def _get_chunks(seg_dur, audio_id, audio_duration): method _get_audio_info (line 232) | def _get_audio_info(self, wav_file: str, method generate_csv (line 259) | def generate_csv(self, method prepare_data (line 285) | def prepare_data(self): method __getitem__ (line 352) | def __getitem__(self, idx): method __len__ (line 355) | def __len__(self): FILE: audio/paddleaudio/features/layers.py class Spectrogram (line 35) | class Spectrogram(nn.Layer): method __init__ (line 50) | def __init__(self, method forward (line 79) | def forward(self, x: Tensor) -> Tensor: class MelSpectrogram (line 92) | class MelSpectrogram(nn.Layer): method __init__ (line 112) | def __init__(self, method forward (line 156) | def forward(self, x: Tensor) -> Tensor: class LogMelSpectrogram (line 169) | class LogMelSpectrogram(nn.Layer): method __init__ (line 192) | def __init__(self, method forward (line 232) | def forward(self, x: Tensor) -> Tensor: class MFCC (line 249) | class MFCC(nn.Layer): method __init__ (line 273) | def __init__(self, method forward (line 316) | def forward(self, x: Tensor) -> Tensor: FILE: audio/paddleaudio/functional/functional.py function hz_to_mel (line 33) | def hz_to_mel(freq: Union[Tensor, float], function mel_to_hz (line 76) | def mel_to_hz(mel: Union[float, Tensor], function mel_frequencies (line 109) | def mel_frequencies(n_mels: int=64, function fft_frequencies (line 134) | def fft_frequencies(sr: int, n_fft: int, dtype: str='float32') -> Tensor: function compute_fbank_matrix (line 148) | def compute_fbank_matrix(sr: int, function power_to_db (line 208) | def power_to_db(spect: Tensor, function create_dct (line 241) | def create_dct(n_mfcc: int, FILE: audio/paddleaudio/functional/window.py class WindowFunctionRegister (line 22) | class WindowFunctionRegister(object): method __init__ (line 23) | def __init__(self): method register (line 26) | def register(self): method get (line 34) | def get(self, name): function _cat (line 42) | def _cat(x: List[Tensor], data_type: str) -> Tensor: function _acosh (line 48) | def _acosh(x: Union[Tensor, float]) -> Tensor: function _extend (line 55) | def _extend(M: int, sym: bool) -> bool: function _len_guards (line 64) | def _len_guards(M: int) -> bool: function _truncate (line 73) | def _truncate(w: Tensor, needed: bool) -> Tensor: function _general_gaussian (line 82) | def _general_gaussian( function _general_cosine (line 99) | def _general_cosine( function _general_hamming (line 116) | def _general_hamming( function _taylor (line 126) | def _taylor( function _hamming (line 183) | def _hamming(M: int, sym: bool = True, dtype: str = 'float64') -> Tensor: function _hann (line 192) | def _hann(M: int, sym: bool = True, dtype: str = 'float64') -> Tensor: function _tukey (line 201) | def _tukey( function _gaussian (line 235) | def _gaussian( function _exponential (line 253) | def _exponential( function _triang (line 273) | def _triang(M: int, sym: bool = True, dtype: str = 'float64') -> Tensor: function _bohman (line 291) | def _bohman(M: int, sym: bool = True, dtype: str = 'float64') -> Tensor: function _blackman (line 309) | def _blackman(M: int, sym: bool = True, dtype: str = 'float64') -> Tensor: function _cosine (line 320) | def _cosine(M: int, sym: bool = True, dtype: str = 'float64') -> Tensor: function get_window (line 330) | def get_window( FILE: audio/paddleaudio/kaldi/kaldi.py function fbank (line 23) | def fbank( FILE: audio/paddleaudio/metric/eer.py function compute_eer (line 21) | def compute_eer(labels: np.ndarray, scores: np.ndarray) -> List[float]: function compute_minDCF (line 38) | def compute_minDCF(positive_scores, FILE: audio/paddleaudio/sox_effects/sox_effects.py function init_sox_effects (line 15) | def init_sox_effects(): function shutdown_sox_effects (line 30) | def shutdown_sox_effects(): function effect_names (line 44) | def effect_names() -> List[str]: function apply_effects_tensor (line 58) | def apply_effects_tensor( function apply_effects_file (line 132) | def apply_effects_file( FILE: audio/paddleaudio/src/optional/optional.hpp type tl (line 71) | namespace tl { type detail (line 72) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { class monostate (line 116) | class monostate {} type in_place_t (line 119) | struct in_place_t { method in_place_t (line 120) | explicit in_place_t() = default; class optional (line 127) | class optional method and_then (line 760) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) & { method and_then (line 770) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) && { method and_then (line 781) | constexpr auto and_then(F &&f) const & { method and_then (line 792) | constexpr auto and_then(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 806) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then(F ... method TL_OPTIONAL_11_CONSTEXPR (line 816) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then( method and_then (line 828) | constexpr detail::invoke_result_t and_then(F &&f) cons... method and_then (line 839) | constexpr detail::invoke_result_t and_then(F &&f) con... method map (line 855) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) & { method map (line 860) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) && { method map (line 865) | constexpr auto map(F &&f) const & { method map (line 870) | constexpr auto map(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 876) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 883) | TL_OPTIONAL_11_CONSTEXPR decltype( method map (line 890) | constexpr decltype(optional_map_impl(std::declval(), method map (line 898) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 910) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) & { method transform (line 915) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) && { method transform (line 920) | constexpr auto transform(F &&f) const & { method transform (line 925) | constexpr auto transform(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 931) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 938) | TL_OPTIONAL_11_CONSTEXPR decltype( method transform (line 945) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 953) | constexpr decltype(optional_map_impl(std::declval(), method or_else (line 976) | optional or_else(F &&f) && { method or_else (line 989) | optional or_else(F &&f) const & { method or_else (line 1003) | optional or_else(F &&f) const && { method or_else (line 1011) | optional or_else(F &&f) const && { method U (line 1018) | U map_or(F &&f, U &&u) & { method U (line 1024) | U map_or(F &&f, U &&u) && { method U (line 1031) | U map_or(F &&f, U &&u) const & { method U (line 1038) | U map_or(F &&f, U &&u) const && { method map_or_else (line 1048) | detail::invoke_result_t map_or_else(F &&f, U &&u) & { method map_or_else (line 1054) | detail::invoke_result_t map_or_else(F &&f, U &&u) && { method map_or_else (line 1061) | detail::invoke_result_t map_or_else(F &&f, U &&u) const & { method map_or_else (line 1068) | detail::invoke_result_t map_or_else(F &&f, U &&u) const && { method conjunction (line 1077) | constexpr optional::type> conjunction(U &&u) ... method TL_OPTIONAL_11_CONSTEXPR (line 1083) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) & { method optional (line 1087) | constexpr optional disjunction(const optional &rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1091) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) && { method optional (line 1096) | constexpr optional disjunction(const optional &rhs) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1101) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) & { method optional (line 1105) | constexpr optional disjunction(optional &&rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1109) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) && { method optional (line 1114) | constexpr optional disjunction(optional &&rhs) const && { method optional (line 1120) | optional take() { method optional (line 1129) | constexpr optional() noexcept = default; method optional (line 1131) | constexpr optional(nullopt_t) noexcept {} method TL_OPTIONAL_11_CONSTEXPR (line 1137) | TL_OPTIONAL_11_CONSTEXPR optional(const optional &rhs) = default; method TL_OPTIONAL_11_CONSTEXPR (line 1143) | TL_OPTIONAL_11_CONSTEXPR optional(optional &&rhs) = default; method optional (line 1147) | constexpr explicit optional( method TL_OPTIONAL_11_CONSTEXPR (line 1154) | TL_OPTIONAL_11_CONSTEXPR explicit optional( method optional (line 1169) | constexpr optional(U &&u) : base(in_place, std::forward(u)) {} method optional (line 1175) | constexpr explicit optional(U &&u) : base(in_place, std::forward(... method optional (line 1182) | optional(const optional &rhs) { method optional (line 1192) | explicit optional(const optional &rhs) { method optional (line 1203) | optional(optional &&rhs) { method optional (line 1213) | explicit optional(optional &&rhs) { method optional (line 1225) | optional &operator=(nullopt_t) noexcept { method optional (line 1238) | optional &operator=(const optional &rhs) = default; method optional (line 1244) | optional &operator=(optional &&rhs) = default; method optional (line 1249) | optional &operator=(U &&u) { method optional (line 1265) | optional &operator=(const optional &rhs) { method optional (line 1287) | optional &operator=(optional &&rhs) { method T (line 1306) | T &emplace(Args &&... args) { method emplace (line 1316) | detail::enable_if_t< method swap (line 1331) | void swap(optional &rhs) noexcept( method T (line 1350) | constexpr const T *operator->() const { method TL_OPTIONAL_11_CONSTEXPR (line 1354) | TL_OPTIONAL_11_CONSTEXPR T *operator->() { method TL_OPTIONAL_11_CONSTEXPR (line 1359) | TL_OPTIONAL_11_CONSTEXPR T &operator*() & { return this->m_value; } method T (line 1361) | constexpr const T &operator*() const & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1363) | TL_OPTIONAL_11_CONSTEXPR T &&operator*() && { method T (line 1368) | constexpr const T &&operator*() const && { method has_value (line 1374) | constexpr bool has_value() const noexcept { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1382) | TL_OPTIONAL_11_CONSTEXPR T &value() & { method TL_OPTIONAL_11_CONSTEXPR (line 1386) | TL_OPTIONAL_11_CONSTEXPR const T &value() const & { method TL_OPTIONAL_11_CONSTEXPR (line 1390) | TL_OPTIONAL_11_CONSTEXPR T &&value() && { method TL_OPTIONAL_11_CONSTEXPR (line 1396) | TL_OPTIONAL_11_CONSTEXPR const T &&value() const && { method T (line 1404) | constexpr T value_or(U &&u) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1412) | TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && { method reset (line 1420) | void reset() noexcept { type detail (line 129) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { type nullopt_t (line 719) | struct nullopt_t { type do_not_use (line 720) | struct do_not_use {} method nullopt_t (line 721) | constexpr explicit nullopt_t(do_not_use, do_not_use) noexcept {} class bad_optional_access (line 727) | class bad_optional_access : public std::exception { method bad_optional_access (line 729) | bad_optional_access() = default; class optional (line 740) | class optional : private detail::optional_move_assign_base, method and_then (line 760) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) & { method and_then (line 770) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) && { method and_then (line 781) | constexpr auto and_then(F &&f) const & { method and_then (line 792) | constexpr auto and_then(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 806) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then(F ... method TL_OPTIONAL_11_CONSTEXPR (line 816) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then( method and_then (line 828) | constexpr detail::invoke_result_t and_then(F &&f) cons... method and_then (line 839) | constexpr detail::invoke_result_t and_then(F &&f) con... method map (line 855) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) & { method map (line 860) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) && { method map (line 865) | constexpr auto map(F &&f) const & { method map (line 870) | constexpr auto map(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 876) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 883) | TL_OPTIONAL_11_CONSTEXPR decltype( method map (line 890) | constexpr decltype(optional_map_impl(std::declval(), method map (line 898) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 910) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) & { method transform (line 915) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) && { method transform (line 920) | constexpr auto transform(F &&f) const & { method transform (line 925) | constexpr auto transform(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 931) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 938) | TL_OPTIONAL_11_CONSTEXPR decltype( method transform (line 945) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 953) | constexpr decltype(optional_map_impl(std::declval(), method or_else (line 976) | optional or_else(F &&f) && { method or_else (line 989) | optional or_else(F &&f) const & { method or_else (line 1003) | optional or_else(F &&f) const && { method or_else (line 1011) | optional or_else(F &&f) const && { method U (line 1018) | U map_or(F &&f, U &&u) & { method U (line 1024) | U map_or(F &&f, U &&u) && { method U (line 1031) | U map_or(F &&f, U &&u) const & { method U (line 1038) | U map_or(F &&f, U &&u) const && { method map_or_else (line 1048) | detail::invoke_result_t map_or_else(F &&f, U &&u) & { method map_or_else (line 1054) | detail::invoke_result_t map_or_else(F &&f, U &&u) && { method map_or_else (line 1061) | detail::invoke_result_t map_or_else(F &&f, U &&u) const & { method map_or_else (line 1068) | detail::invoke_result_t map_or_else(F &&f, U &&u) const && { method conjunction (line 1077) | constexpr optional::type> conjunction(U &&u) ... method TL_OPTIONAL_11_CONSTEXPR (line 1083) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) & { method optional (line 1087) | constexpr optional disjunction(const optional &rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1091) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) && { method optional (line 1096) | constexpr optional disjunction(const optional &rhs) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1101) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) & { method optional (line 1105) | constexpr optional disjunction(optional &&rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1109) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) && { method optional (line 1114) | constexpr optional disjunction(optional &&rhs) const && { method optional (line 1120) | optional take() { method optional (line 1129) | constexpr optional() noexcept = default; method optional (line 1131) | constexpr optional(nullopt_t) noexcept {} method TL_OPTIONAL_11_CONSTEXPR (line 1137) | TL_OPTIONAL_11_CONSTEXPR optional(const optional &rhs) = default; method TL_OPTIONAL_11_CONSTEXPR (line 1143) | TL_OPTIONAL_11_CONSTEXPR optional(optional &&rhs) = default; method optional (line 1147) | constexpr explicit optional( method TL_OPTIONAL_11_CONSTEXPR (line 1154) | TL_OPTIONAL_11_CONSTEXPR explicit optional( method optional (line 1169) | constexpr optional(U &&u) : base(in_place, std::forward(u)) {} method optional (line 1175) | constexpr explicit optional(U &&u) : base(in_place, std::forward(... method optional (line 1182) | optional(const optional &rhs) { method optional (line 1192) | explicit optional(const optional &rhs) { method optional (line 1203) | optional(optional &&rhs) { method optional (line 1213) | explicit optional(optional &&rhs) { method optional (line 1225) | optional &operator=(nullopt_t) noexcept { method optional (line 1238) | optional &operator=(const optional &rhs) = default; method optional (line 1244) | optional &operator=(optional &&rhs) = default; method optional (line 1249) | optional &operator=(U &&u) { method optional (line 1265) | optional &operator=(const optional &rhs) { method optional (line 1287) | optional &operator=(optional &&rhs) { method T (line 1306) | T &emplace(Args &&... args) { method emplace (line 1316) | detail::enable_if_t< method swap (line 1331) | void swap(optional &rhs) noexcept( method T (line 1350) | constexpr const T *operator->() const { method TL_OPTIONAL_11_CONSTEXPR (line 1354) | TL_OPTIONAL_11_CONSTEXPR T *operator->() { method TL_OPTIONAL_11_CONSTEXPR (line 1359) | TL_OPTIONAL_11_CONSTEXPR T &operator*() & { return this->m_value; } method T (line 1361) | constexpr const T &operator*() const & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1363) | TL_OPTIONAL_11_CONSTEXPR T &&operator*() && { method T (line 1368) | constexpr const T &&operator*() const && { method has_value (line 1374) | constexpr bool has_value() const noexcept { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1382) | TL_OPTIONAL_11_CONSTEXPR T &value() & { method TL_OPTIONAL_11_CONSTEXPR (line 1386) | TL_OPTIONAL_11_CONSTEXPR const T &value() const & { method TL_OPTIONAL_11_CONSTEXPR (line 1390) | TL_OPTIONAL_11_CONSTEXPR T &&value() && { method TL_OPTIONAL_11_CONSTEXPR (line 1396) | TL_OPTIONAL_11_CONSTEXPR const T &&value() const && { method T (line 1404) | constexpr T value_or(U &&u) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1412) | TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && { method reset (line 1420) | void reset() noexcept { function swap (line 1565) | void swap(optional &lhs, type detail (line 1570) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { function make_optional (line 1580) | inline constexpr optional make_optional(U &&v) { function make_optional (line 1585) | inline constexpr optional make_optional(Args &&... args) { function make_optional (line 1589) | inline constexpr optional make_optional(std::initializer_list il, type detail (line 1600) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { class optional (line 1659) | class optional { method and_then (line 1671) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) & { method and_then (line 1681) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) && { method and_then (line 1691) | constexpr auto and_then(F &&f) const & { method and_then (line 1702) | constexpr auto and_then(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1715) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then(F ... method TL_OPTIONAL_11_CONSTEXPR (line 1725) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then( method and_then (line 1736) | constexpr detail::invoke_result_t and_then(F &&f) cons... method and_then (line 1747) | constexpr detail::invoke_result_t and_then(F &&f) cons... method map (line 1762) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) & { method map (line 1767) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) && { method map (line 1772) | constexpr auto map(F &&f) const & { method map (line 1777) | constexpr auto map(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1783) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method TL_OPTIONAL_11_CONSTEXPR (line 1790) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method map (line 1797) | constexpr decltype(detail::optional_map_impl( method map (line 1805) | constexpr decltype(detail::optional_map_impl( method transform (line 1817) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) & { method transform (line 1822) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) && { method transform (line 1827) | constexpr auto transform(F &&f) const & { method transform (line 1832) | constexpr auto transform(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1838) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method TL_OPTIONAL_11_CONSTEXPR (line 1847) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method transform (line 1854) | constexpr decltype(detail::optional_map_impl( method transform (line 1862) | constexpr decltype(detail::optional_map_impl( method or_else (line 1885) | optional or_else(F &&f) && { method or_else (line 1898) | optional or_else(F &&f) const & { method or_else (line 1912) | optional or_else(F &&f) const && { method or_else (line 1920) | optional or_else(F &&f) const && { method U (line 1927) | U map_or(F &&f, U &&u) & { method U (line 1933) | U map_or(F &&f, U &&u) && { method U (line 1940) | U map_or(F &&f, U &&u) const & { method U (line 1947) | U map_or(F &&f, U &&u) const && { method map_or_else (line 1957) | detail::invoke_result_t map_or_else(F &&f, U &&u) & { method map_or_else (line 1963) | detail::invoke_result_t map_or_else(F &&f, U &&u) && { method map_or_else (line 1970) | detail::invoke_result_t map_or_else(F &&f, U &&u) const & { method map_or_else (line 1977) | detail::invoke_result_t map_or_else(F &&f, U &&u) const && { method conjunction (line 1986) | constexpr optional::type> conjunction(U &&u) ... method TL_OPTIONAL_11_CONSTEXPR (line 1992) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) & { method optional (line 1996) | constexpr optional disjunction(const optional &rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 2000) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) && { method optional (line 2005) | constexpr optional disjunction(const optional &rhs) const && { method TL_OPTIONAL_11_CONSTEXPR (line 2010) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) & { method optional (line 2014) | constexpr optional disjunction(optional &&rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 2018) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) && { method optional (line 2023) | constexpr optional disjunction(optional &&rhs) const && { method optional (line 2029) | optional take() { method optional (line 2038) | constexpr optional() noexcept : m_value(nullptr) {} method optional (line 2040) | constexpr optional(nullopt_t) noexcept : m_value(nullptr) {} method TL_OPTIONAL_11_CONSTEXPR (line 2046) | TL_OPTIONAL_11_CONSTEXPR optional(const optional &rhs) noexcept = de... method TL_OPTIONAL_11_CONSTEXPR (line 2052) | TL_OPTIONAL_11_CONSTEXPR optional(optional &&rhs) = default; method optional (line 2058) | constexpr optional(U &&u) noexcept : m_value(std::addressof(u)) { method optional (line 2064) | constexpr explicit optional(const optional &rhs) noexcept method optional (line 2073) | optional &operator=(nullopt_t) noexcept { method optional (line 2082) | optional &operator=(const optional &rhs) = default; method optional (line 2088) | optional &operator=(U &&u) { method optional (line 2100) | optional &operator=(const optional &rhs) noexcept { method optional (line 2109) | optional &emplace(U &&u) noexcept { method swap (line 2113) | void swap(optional &rhs) noexcept { std::swap(m_value, rhs.m_value); } method T (line 2116) | constexpr const T *operator->() const noexcept { return m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 2118) | TL_OPTIONAL_11_CONSTEXPR T *operator->() noexcept { return m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 2121) | TL_OPTIONAL_11_CONSTEXPR T &operator*() noexcept { return *m_value; } method T (line 2123) | constexpr const T &operator*() const noexcept { return *m_value; } method has_value (line 2125) | constexpr bool has_value() const noexcept { return m_value != nullpt... method TL_OPTIONAL_11_CONSTEXPR (line 2133) | TL_OPTIONAL_11_CONSTEXPR T &value() { method TL_OPTIONAL_11_CONSTEXPR (line 2137) | TL_OPTIONAL_11_CONSTEXPR const T &value() const { method T (line 2144) | constexpr T value_or(U &&u) const &noexcept { method TL_OPTIONAL_11_CONSTEXPR (line 2153) | TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && noexcept { method reset (line 2161) | void reset() noexcept { m_value = nullptr; } type tl (line 112) | namespace tl { type detail (line 72) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { class monostate (line 116) | class monostate {} type in_place_t (line 119) | struct in_place_t { method in_place_t (line 120) | explicit in_place_t() = default; class optional (line 127) | class optional method and_then (line 760) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) & { method and_then (line 770) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) && { method and_then (line 781) | constexpr auto and_then(F &&f) const & { method and_then (line 792) | constexpr auto and_then(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 806) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then(F ... method TL_OPTIONAL_11_CONSTEXPR (line 816) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then( method and_then (line 828) | constexpr detail::invoke_result_t and_then(F &&f) cons... method and_then (line 839) | constexpr detail::invoke_result_t and_then(F &&f) con... method map (line 855) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) & { method map (line 860) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) && { method map (line 865) | constexpr auto map(F &&f) const & { method map (line 870) | constexpr auto map(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 876) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 883) | TL_OPTIONAL_11_CONSTEXPR decltype( method map (line 890) | constexpr decltype(optional_map_impl(std::declval(), method map (line 898) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 910) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) & { method transform (line 915) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) && { method transform (line 920) | constexpr auto transform(F &&f) const & { method transform (line 925) | constexpr auto transform(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 931) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 938) | TL_OPTIONAL_11_CONSTEXPR decltype( method transform (line 945) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 953) | constexpr decltype(optional_map_impl(std::declval(), method or_else (line 976) | optional or_else(F &&f) && { method or_else (line 989) | optional or_else(F &&f) const & { method or_else (line 1003) | optional or_else(F &&f) const && { method or_else (line 1011) | optional or_else(F &&f) const && { method U (line 1018) | U map_or(F &&f, U &&u) & { method U (line 1024) | U map_or(F &&f, U &&u) && { method U (line 1031) | U map_or(F &&f, U &&u) const & { method U (line 1038) | U map_or(F &&f, U &&u) const && { method map_or_else (line 1048) | detail::invoke_result_t map_or_else(F &&f, U &&u) & { method map_or_else (line 1054) | detail::invoke_result_t map_or_else(F &&f, U &&u) && { method map_or_else (line 1061) | detail::invoke_result_t map_or_else(F &&f, U &&u) const & { method map_or_else (line 1068) | detail::invoke_result_t map_or_else(F &&f, U &&u) const && { method conjunction (line 1077) | constexpr optional::type> conjunction(U &&u) ... method TL_OPTIONAL_11_CONSTEXPR (line 1083) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) & { method optional (line 1087) | constexpr optional disjunction(const optional &rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1091) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) && { method optional (line 1096) | constexpr optional disjunction(const optional &rhs) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1101) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) & { method optional (line 1105) | constexpr optional disjunction(optional &&rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1109) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) && { method optional (line 1114) | constexpr optional disjunction(optional &&rhs) const && { method optional (line 1120) | optional take() { method optional (line 1129) | constexpr optional() noexcept = default; method optional (line 1131) | constexpr optional(nullopt_t) noexcept {} method TL_OPTIONAL_11_CONSTEXPR (line 1137) | TL_OPTIONAL_11_CONSTEXPR optional(const optional &rhs) = default; method TL_OPTIONAL_11_CONSTEXPR (line 1143) | TL_OPTIONAL_11_CONSTEXPR optional(optional &&rhs) = default; method optional (line 1147) | constexpr explicit optional( method TL_OPTIONAL_11_CONSTEXPR (line 1154) | TL_OPTIONAL_11_CONSTEXPR explicit optional( method optional (line 1169) | constexpr optional(U &&u) : base(in_place, std::forward(u)) {} method optional (line 1175) | constexpr explicit optional(U &&u) : base(in_place, std::forward(... method optional (line 1182) | optional(const optional &rhs) { method optional (line 1192) | explicit optional(const optional &rhs) { method optional (line 1203) | optional(optional &&rhs) { method optional (line 1213) | explicit optional(optional &&rhs) { method optional (line 1225) | optional &operator=(nullopt_t) noexcept { method optional (line 1238) | optional &operator=(const optional &rhs) = default; method optional (line 1244) | optional &operator=(optional &&rhs) = default; method optional (line 1249) | optional &operator=(U &&u) { method optional (line 1265) | optional &operator=(const optional &rhs) { method optional (line 1287) | optional &operator=(optional &&rhs) { method T (line 1306) | T &emplace(Args &&... args) { method emplace (line 1316) | detail::enable_if_t< method swap (line 1331) | void swap(optional &rhs) noexcept( method T (line 1350) | constexpr const T *operator->() const { method TL_OPTIONAL_11_CONSTEXPR (line 1354) | TL_OPTIONAL_11_CONSTEXPR T *operator->() { method TL_OPTIONAL_11_CONSTEXPR (line 1359) | TL_OPTIONAL_11_CONSTEXPR T &operator*() & { return this->m_value; } method T (line 1361) | constexpr const T &operator*() const & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1363) | TL_OPTIONAL_11_CONSTEXPR T &&operator*() && { method T (line 1368) | constexpr const T &&operator*() const && { method has_value (line 1374) | constexpr bool has_value() const noexcept { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1382) | TL_OPTIONAL_11_CONSTEXPR T &value() & { method TL_OPTIONAL_11_CONSTEXPR (line 1386) | TL_OPTIONAL_11_CONSTEXPR const T &value() const & { method TL_OPTIONAL_11_CONSTEXPR (line 1390) | TL_OPTIONAL_11_CONSTEXPR T &&value() && { method TL_OPTIONAL_11_CONSTEXPR (line 1396) | TL_OPTIONAL_11_CONSTEXPR const T &&value() const && { method T (line 1404) | constexpr T value_or(U &&u) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1412) | TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && { method reset (line 1420) | void reset() noexcept { type detail (line 129) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { type nullopt_t (line 719) | struct nullopt_t { type do_not_use (line 720) | struct do_not_use {} method nullopt_t (line 721) | constexpr explicit nullopt_t(do_not_use, do_not_use) noexcept {} class bad_optional_access (line 727) | class bad_optional_access : public std::exception { method bad_optional_access (line 729) | bad_optional_access() = default; class optional (line 740) | class optional : private detail::optional_move_assign_base, method and_then (line 760) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) & { method and_then (line 770) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) && { method and_then (line 781) | constexpr auto and_then(F &&f) const & { method and_then (line 792) | constexpr auto and_then(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 806) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then(F ... method TL_OPTIONAL_11_CONSTEXPR (line 816) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then( method and_then (line 828) | constexpr detail::invoke_result_t and_then(F &&f) cons... method and_then (line 839) | constexpr detail::invoke_result_t and_then(F &&f) con... method map (line 855) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) & { method map (line 860) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) && { method map (line 865) | constexpr auto map(F &&f) const & { method map (line 870) | constexpr auto map(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 876) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 883) | TL_OPTIONAL_11_CONSTEXPR decltype( method map (line 890) | constexpr decltype(optional_map_impl(std::declval(), method map (line 898) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 910) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) & { method transform (line 915) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) && { method transform (line 920) | constexpr auto transform(F &&f) const & { method transform (line 925) | constexpr auto transform(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 931) | TL_OPTIONAL_11_CONSTEXPR decltype( method TL_OPTIONAL_11_CONSTEXPR (line 938) | TL_OPTIONAL_11_CONSTEXPR decltype( method transform (line 945) | constexpr decltype(optional_map_impl(std::declval(), method transform (line 953) | constexpr decltype(optional_map_impl(std::declval(), method or_else (line 976) | optional or_else(F &&f) && { method or_else (line 989) | optional or_else(F &&f) const & { method or_else (line 1003) | optional or_else(F &&f) const && { method or_else (line 1011) | optional or_else(F &&f) const && { method U (line 1018) | U map_or(F &&f, U &&u) & { method U (line 1024) | U map_or(F &&f, U &&u) && { method U (line 1031) | U map_or(F &&f, U &&u) const & { method U (line 1038) | U map_or(F &&f, U &&u) const && { method map_or_else (line 1048) | detail::invoke_result_t map_or_else(F &&f, U &&u) & { method map_or_else (line 1054) | detail::invoke_result_t map_or_else(F &&f, U &&u) && { method map_or_else (line 1061) | detail::invoke_result_t map_or_else(F &&f, U &&u) const & { method map_or_else (line 1068) | detail::invoke_result_t map_or_else(F &&f, U &&u) const && { method conjunction (line 1077) | constexpr optional::type> conjunction(U &&u) ... method TL_OPTIONAL_11_CONSTEXPR (line 1083) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) & { method optional (line 1087) | constexpr optional disjunction(const optional &rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1091) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) && { method optional (line 1096) | constexpr optional disjunction(const optional &rhs) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1101) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) & { method optional (line 1105) | constexpr optional disjunction(optional &&rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1109) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) && { method optional (line 1114) | constexpr optional disjunction(optional &&rhs) const && { method optional (line 1120) | optional take() { method optional (line 1129) | constexpr optional() noexcept = default; method optional (line 1131) | constexpr optional(nullopt_t) noexcept {} method TL_OPTIONAL_11_CONSTEXPR (line 1137) | TL_OPTIONAL_11_CONSTEXPR optional(const optional &rhs) = default; method TL_OPTIONAL_11_CONSTEXPR (line 1143) | TL_OPTIONAL_11_CONSTEXPR optional(optional &&rhs) = default; method optional (line 1147) | constexpr explicit optional( method TL_OPTIONAL_11_CONSTEXPR (line 1154) | TL_OPTIONAL_11_CONSTEXPR explicit optional( method optional (line 1169) | constexpr optional(U &&u) : base(in_place, std::forward(u)) {} method optional (line 1175) | constexpr explicit optional(U &&u) : base(in_place, std::forward(... method optional (line 1182) | optional(const optional &rhs) { method optional (line 1192) | explicit optional(const optional &rhs) { method optional (line 1203) | optional(optional &&rhs) { method optional (line 1213) | explicit optional(optional &&rhs) { method optional (line 1225) | optional &operator=(nullopt_t) noexcept { method optional (line 1238) | optional &operator=(const optional &rhs) = default; method optional (line 1244) | optional &operator=(optional &&rhs) = default; method optional (line 1249) | optional &operator=(U &&u) { method optional (line 1265) | optional &operator=(const optional &rhs) { method optional (line 1287) | optional &operator=(optional &&rhs) { method T (line 1306) | T &emplace(Args &&... args) { method emplace (line 1316) | detail::enable_if_t< method swap (line 1331) | void swap(optional &rhs) noexcept( method T (line 1350) | constexpr const T *operator->() const { method TL_OPTIONAL_11_CONSTEXPR (line 1354) | TL_OPTIONAL_11_CONSTEXPR T *operator->() { method TL_OPTIONAL_11_CONSTEXPR (line 1359) | TL_OPTIONAL_11_CONSTEXPR T &operator*() & { return this->m_value; } method T (line 1361) | constexpr const T &operator*() const & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1363) | TL_OPTIONAL_11_CONSTEXPR T &&operator*() && { method T (line 1368) | constexpr const T &&operator*() const && { method has_value (line 1374) | constexpr bool has_value() const noexcept { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 1382) | TL_OPTIONAL_11_CONSTEXPR T &value() & { method TL_OPTIONAL_11_CONSTEXPR (line 1386) | TL_OPTIONAL_11_CONSTEXPR const T &value() const & { method TL_OPTIONAL_11_CONSTEXPR (line 1390) | TL_OPTIONAL_11_CONSTEXPR T &&value() && { method TL_OPTIONAL_11_CONSTEXPR (line 1396) | TL_OPTIONAL_11_CONSTEXPR const T &&value() const && { method T (line 1404) | constexpr T value_or(U &&u) const & { method TL_OPTIONAL_11_CONSTEXPR (line 1412) | TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && { method reset (line 1420) | void reset() noexcept { function swap (line 1565) | void swap(optional &lhs, type detail (line 1570) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { function make_optional (line 1580) | inline constexpr optional make_optional(U &&v) { function make_optional (line 1585) | inline constexpr optional make_optional(Args &&... args) { function make_optional (line 1589) | inline constexpr optional make_optional(std::initializer_list il, type detail (line 1600) | namespace detail { type is_trivially_copy_constructible (line 74) | struct is_trivially_copy_constructible type is_trivially_copy_constructible> (line 78) | struct is_trivially_copy_constructible> type conjunction (line 146) | struct conjunction : std::true_type {} type conjunction (line 148) | struct conjunction : B {} type is_pointer_to_non_const_member_func (line 162) | struct is_pointer_to_non_const_member_func : std::false_type {} type is_const_or_const_ref (line 183) | struct is_const_or_const_ref : std::false_type {} type is_const_or_const_ref (line 185) | struct is_const_or_const_ref : std::true_type {} type is_const_or_const_ref (line 187) | struct is_const_or_const_ref : std::true_type {} function invoke (line 201) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( function invoke (line 210) | constexpr auto invoke(Fn &&f, Args &&... args) noexcept( type invoke_result_impl (line 218) | struct invoke_result_impl type is_swappable (line 238) | struct is_swappable : std::true_type {} type is_nothrow_swappable (line 241) | struct is_nothrow_swappable : std::true_type {} type swap_adl_tests (line 244) | namespace swap_adl_tests { type tag (line 247) | struct tag {} type is_std_swap_noexcept (line 271) | struct is_std_swap_noexcept type is_std_swap_noexcept (line 277) | struct is_std_swap_noexcept : is_std_swap_noexcept {} type is_adl_swap_noexcept (line 280) | struct is_adl_swap_noexcept type is_swappable (line 285) | struct is_swappable type is_swappable (line 294) | struct is_swappable type is_nothrow_swappable (line 303) | struct is_nothrow_swappable type voider (line 318) | struct voider { type is_optional_impl (line 326) | struct is_optional_impl : std::false_type {} type is_optional_impl> (line 328) | struct is_optional_impl> : std::true_type {} type returns_void_impl (line 341) | struct returns_void_impl type optional_storage_base (line 400) | struct optional_storage_base { method TL_OPTIONAL_11_CONSTEXPR (line 406) | TL_OPTIONAL_11_CONSTEXPR optional_storage_base(in_place_t, U &&... u) type dummy (line 416) | struct dummy {} type optional_storage_base (line 427) | struct optional_storage_base { type dummy (line 438) | struct dummy {} type optional_operations_base (line 450) | struct optional_operations_base : optional_storage_base { method hard_reset (line 453) | void hard_reset() noexcept { method construct (line 459) | void construct(Args &&... args) noexcept { method assign (line 465) | void assign(Opt &&rhs) { method has_value (line 480) | bool has_value() const { return this->m_has_value; } method TL_OPTIONAL_11_CONSTEXPR (line 482) | TL_OPTIONAL_11_CONSTEXPR T &get() & { return this->m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 483) | TL_OPTIONAL_11_CONSTEXPR const T &get() const & { return this->m_v... method TL_OPTIONAL_11_CONSTEXPR (line 484) | TL_OPTIONAL_11_CONSTEXPR T &&get() && { return std::move(this->m_v... method T (line 486) | constexpr const T &&get() const && { return std::move(this->m_valu... type optional_copy_base (line 493) | struct optional_copy_base : optional_operations_base { type optional_copy_base (line 499) | struct optional_copy_base : optional_operations_base { method optional_copy_base (line 502) | optional_copy_base() = default; method optional_copy_base (line 503) | optional_copy_base(const optional_copy_base &rhs) method optional_copy_base (line 512) | optional_copy_base(optional_copy_base &&rhs) = default; method optional_copy_base (line 513) | optional_copy_base &operator=(const optional_copy_base &rhs) = def... method optional_copy_base (line 514) | optional_copy_base &operator=(optional_copy_base &&rhs) = default; type optional_move_base (line 524) | struct optional_move_base : optional_copy_base { type optional_move_base (line 529) | struct optional_move_base type optional_move_base (line 532) | struct optional_move_base : optional_copy_base { method optional_move_base (line 535) | optional_move_base() = default; method optional_move_base (line 536) | optional_move_base(const optional_move_base &rhs) = default; method optional_move_base (line 538) | optional_move_base(optional_move_base &&rhs) noexcept( method optional_move_base (line 546) | optional_move_base &operator=(const optional_move_base &rhs) = def... method optional_move_base (line 547) | optional_move_base &operator=(optional_move_base &&rhs) = default; type optional_copy_assign_base (line 555) | struct optional_copy_assign_base : optional_move_base { type optional_copy_assign_base (line 560) | struct optional_copy_assign_base : optional_move_base { method optional_copy_assign_base (line 563) | optional_copy_assign_base() = default; method optional_copy_assign_base (line 564) | optional_copy_assign_base(const optional_copy_assign_base &rhs) = ... method optional_copy_assign_base (line 566) | optional_copy_assign_base(optional_copy_assign_base &&rhs) = default; method optional_copy_assign_base (line 567) | optional_copy_assign_base &operator=(const optional_copy_assign_ba... method optional_copy_assign_base (line 571) | optional_copy_assign_base &operator=(optional_copy_assign_base &&r... type optional_move_assign_base (line 585) | struct optional_move_assign_base : optional_copy_assign_base { type optional_move_assign_base (line 590) | struct optional_move_assign_base type optional_move_assign_base (line 594) | struct optional_move_assign_base : optional_copy_assign_ba... method optional_move_assign_base (line 597) | optional_move_assign_base() = default; method optional_move_assign_base (line 598) | optional_move_assign_base(const optional_move_assign_base &rhs) = ... method optional_move_assign_base (line 600) | optional_move_assign_base(optional_move_assign_base &&rhs) = default; method optional_move_assign_base (line 602) | optional_move_assign_base &operator=(const optional_move_assign_ba... method optional_move_assign_base (line 605) | optional_move_assign_base & type optional_delete_ctor_base (line 619) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 620) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 621) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 622) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 623) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 625) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 630) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 631) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 632) | optional_delete_ctor_base(const optional_delete_ctor_base &) = def... method optional_delete_ctor_base (line 633) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 634) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 636) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 641) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 642) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 643) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 644) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 645) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 647) | optional_delete_ctor_base &operator=( type optional_delete_ctor_base (line 652) | struct optional_delete_ctor_base { method optional_delete_ctor_base (line 653) | optional_delete_ctor_base() = default; method optional_delete_ctor_base (line 654) | optional_delete_ctor_base(const optional_delete_ctor_base &) = del... method optional_delete_ctor_base (line 655) | optional_delete_ctor_base(optional_delete_ctor_base &&) noexcept =... method optional_delete_ctor_base (line 656) | optional_delete_ctor_base &operator=(const optional_delete_ctor_ba... method optional_delete_ctor_base (line 658) | optional_delete_ctor_base &operator=( type optional_delete_assign_base (line 669) | struct optional_delete_assign_base { method optional_delete_assign_base (line 670) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 671) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 672) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 674) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 676) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 681) | struct optional_delete_assign_base { method optional_delete_assign_base (line 682) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 683) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 684) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 686) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 688) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 693) | struct optional_delete_assign_base { method optional_delete_assign_base (line 694) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 695) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 696) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 698) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 700) | optional_delete_assign_base &operator=( type optional_delete_assign_base (line 705) | struct optional_delete_assign_base { method optional_delete_assign_base (line 706) | optional_delete_assign_base() = default; method optional_delete_assign_base (line 707) | optional_delete_assign_base(const optional_delete_assign_base &) =... method optional_delete_assign_base (line 708) | optional_delete_assign_base(optional_delete_assign_base &&) noexce... method optional_delete_assign_base (line 710) | optional_delete_assign_base &operator=( method optional_delete_assign_base (line 712) | optional_delete_assign_base &operator=( type i_am_secret (line 1571) | struct i_am_secret {} function optional_map_impl (line 1607) | constexpr auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1618) | auto optional_map_impl(Opt &&opt, F &&f) { function optional_map_impl (line 1633) | constexpr auto optional_map_impl(Opt &&opt, F &&f) -> optional { function optional_map_impl (line 1645) | auto optional_map_impl(Opt &&opt, F &&f) -> optional { class optional (line 1659) | class optional { method and_then (line 1671) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) & { method and_then (line 1681) | TL_OPTIONAL_11_CONSTEXPR auto and_then(F &&f) && { method and_then (line 1691) | constexpr auto and_then(F &&f) const & { method and_then (line 1702) | constexpr auto and_then(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1715) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then(F ... method TL_OPTIONAL_11_CONSTEXPR (line 1725) | TL_OPTIONAL_11_CONSTEXPR detail::invoke_result_t and_then( method and_then (line 1736) | constexpr detail::invoke_result_t and_then(F &&f) cons... method and_then (line 1747) | constexpr detail::invoke_result_t and_then(F &&f) cons... method map (line 1762) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) & { method map (line 1767) | TL_OPTIONAL_11_CONSTEXPR auto map(F &&f) && { method map (line 1772) | constexpr auto map(F &&f) const & { method map (line 1777) | constexpr auto map(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1783) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method TL_OPTIONAL_11_CONSTEXPR (line 1790) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method map (line 1797) | constexpr decltype(detail::optional_map_impl( method map (line 1805) | constexpr decltype(detail::optional_map_impl( method transform (line 1817) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) & { method transform (line 1822) | TL_OPTIONAL_11_CONSTEXPR auto transform(F &&f) && { method transform (line 1827) | constexpr auto transform(F &&f) const & { method transform (line 1832) | constexpr auto transform(F &&f) const && { method TL_OPTIONAL_11_CONSTEXPR (line 1838) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method TL_OPTIONAL_11_CONSTEXPR (line 1847) | TL_OPTIONAL_11_CONSTEXPR decltype(detail::optional_map_impl( method transform (line 1854) | constexpr decltype(detail::optional_map_impl( method transform (line 1862) | constexpr decltype(detail::optional_map_impl( method or_else (line 1885) | optional or_else(F &&f) && { method or_else (line 1898) | optional or_else(F &&f) const & { method or_else (line 1912) | optional or_else(F &&f) const && { method or_else (line 1920) | optional or_else(F &&f) const && { method U (line 1927) | U map_or(F &&f, U &&u) & { method U (line 1933) | U map_or(F &&f, U &&u) && { method U (line 1940) | U map_or(F &&f, U &&u) const & { method U (line 1947) | U map_or(F &&f, U &&u) const && { method map_or_else (line 1957) | detail::invoke_result_t map_or_else(F &&f, U &&u) & { method map_or_else (line 1963) | detail::invoke_result_t map_or_else(F &&f, U &&u) && { method map_or_else (line 1970) | detail::invoke_result_t map_or_else(F &&f, U &&u) const & { method map_or_else (line 1977) | detail::invoke_result_t map_or_else(F &&f, U &&u) const && { method conjunction (line 1986) | constexpr optional::type> conjunction(U &&u) ... method TL_OPTIONAL_11_CONSTEXPR (line 1992) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) & { method optional (line 1996) | constexpr optional disjunction(const optional &rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 2000) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(const optional &rhs) && { method optional (line 2005) | constexpr optional disjunction(const optional &rhs) const && { method TL_OPTIONAL_11_CONSTEXPR (line 2010) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) & { method optional (line 2014) | constexpr optional disjunction(optional &&rhs) const & { method TL_OPTIONAL_11_CONSTEXPR (line 2018) | TL_OPTIONAL_11_CONSTEXPR optional disjunction(optional &&rhs) && { method optional (line 2023) | constexpr optional disjunction(optional &&rhs) const && { method optional (line 2029) | optional take() { method optional (line 2038) | constexpr optional() noexcept : m_value(nullptr) {} method optional (line 2040) | constexpr optional(nullopt_t) noexcept : m_value(nullptr) {} method TL_OPTIONAL_11_CONSTEXPR (line 2046) | TL_OPTIONAL_11_CONSTEXPR optional(const optional &rhs) noexcept = de... method TL_OPTIONAL_11_CONSTEXPR (line 2052) | TL_OPTIONAL_11_CONSTEXPR optional(optional &&rhs) = default; method optional (line 2058) | constexpr optional(U &&u) noexcept : m_value(std::addressof(u)) { method optional (line 2064) | constexpr explicit optional(const optional &rhs) noexcept method optional (line 2073) | optional &operator=(nullopt_t) noexcept { method optional (line 2082) | optional &operator=(const optional &rhs) = default; method optional (line 2088) | optional &operator=(U &&u) { method optional (line 2100) | optional &operator=(const optional &rhs) noexcept { method optional (line 2109) | optional &emplace(U &&u) noexcept { method swap (line 2113) | void swap(optional &rhs) noexcept { std::swap(m_value, rhs.m_value); } method T (line 2116) | constexpr const T *operator->() const noexcept { return m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 2118) | TL_OPTIONAL_11_CONSTEXPR T *operator->() noexcept { return m_value; } method TL_OPTIONAL_11_CONSTEXPR (line 2121) | TL_OPTIONAL_11_CONSTEXPR T &operator*() noexcept { return *m_value; } method T (line 2123) | constexpr const T &operator*() const noexcept { return *m_value; } method has_value (line 2125) | constexpr bool has_value() const noexcept { return m_value != nullpt... method TL_OPTIONAL_11_CONSTEXPR (line 2133) | TL_OPTIONAL_11_CONSTEXPR T &value() { method TL_OPTIONAL_11_CONSTEXPR (line 2137) | TL_OPTIONAL_11_CONSTEXPR const T &value() const { method T (line 2144) | constexpr T value_or(U &&u) const &noexcept { method TL_OPTIONAL_11_CONSTEXPR (line 2153) | TL_OPTIONAL_11_CONSTEXPR T value_or(U &&u) && noexcept { method reset (line 2161) | void reset() noexcept { m_value = nullptr; } type conjunction (line 150) | struct conjunction type is_pointer_to_non_const_member_func (line 164) | struct is_pointer_to_non_const_member_func type is_pointer_to_non_const_member_func (line 167) | struct is_pointer_to_non_const_member_func type is_pointer_to_non_const_member_func (line 170) | struct is_pointer_to_non_const_member_func type is_pointer_to_non_const_member_func (line 173) | struct is_pointer_to_non_const_member_func type is_pointer_to_non_const_member_func (line 176) | struct is_pointer_to_non_const_member_func type is_pointer_to_non_const_member_func (line 179) | struct is_pointer_to_non_const_member_func type invoke_result_impl< F, decltype(detail::invoke(std::declval(), std::declval()...), void()), Us...> (line 221) | struct invoke_result_impl< type returns_void_impl>, U...> (line 343) | struct returns_void_impl>, U...> type std (line 2170) | namespace std { type hash> (line 2173) | struct hash> { FILE: audio/paddleaudio/src/pybind/kaldi/feature_common.h function namespace (line 21) | namespace paddleaudio { FILE: audio/paddleaudio/src/pybind/kaldi/feature_common_inl.h function namespace (line 16) | namespace paddleaudio { FILE: audio/paddleaudio/src/pybind/kaldi/kaldi_feature.cc type paddleaudio (line 18) | namespace paddleaudio { type kaldi (line 19) | namespace kaldi { function InitFbank (line 21) | bool InitFbank( function ComputeFbankStreaming (line 38) | py::array_t ComputeFbankStreaming(const py::array_t& w... function ComputeFbank (line 43) | py::array_t ComputeFbank( function ResetFbank (line 54) | void ResetFbank() { FILE: audio/paddleaudio/src/pybind/kaldi/kaldi_feature.h function namespace (line 26) | namespace paddleaudio { FILE: audio/paddleaudio/src/pybind/kaldi/kaldi_feature_wrapper.cc type paddleaudio (line 17) | namespace paddleaudio { type kaldi (line 18) | namespace kaldi { function KaldiFeatureWrapper (line 20) | KaldiFeatureWrapper* KaldiFeatureWrapper::GetInstance() { FILE: audio/paddleaudio/src/pybind/kaldi/kaldi_feature_wrapper.h function namespace (line 20) | namespace paddleaudio { FILE: audio/paddleaudio/src/pybind/pybind.cpp type pybind11 (line 18) | namespace pybind11 { namespace detail { type detail (line 18) | namespace detail { type type_caster> (line 20) | struct type_caster> : optional_caster sox_effect_handler_t* { function get_fileobj_output_handler (line 541) | auto get_fileobj_output_handler() -> sox_effect_handler_t* { FILE: audio/paddleaudio/src/pybind/sox/effects_chain.h function namespace (line 8) | namespace paddleaudio::sox_effects_chain { FILE: audio/paddleaudio/src/pybind/sox/io.cpp type paddleaudio (line 12) | namespace paddleaudio { type sox_io (line 13) | namespace sox_io { function get_info_file (line 15) | auto get_info_file(const std::string &path, function get_effects (line 35) | std::vector> get_effects( function get_info_fileobj (line 64) | auto get_info_fileobj(py::object fileobj, function load_audio_fileobj (line 97) | tl::optional> load_audio_fileobj( function load_audio_file (line 109) | tl::optional> load_audio_file( function save_audio_file (line 121) | void save_audio_file(const std::string& path, type AutoReleaseBuffer (line 183) | struct AutoReleaseBuffer { method AutoReleaseBuffer (line 187) | AutoReleaseBuffer() : ptr(nullptr), size(0) {} method AutoReleaseBuffer (line 188) | AutoReleaseBuffer(const AutoReleaseBuffer& other) = delete; method AutoReleaseBuffer (line 189) | AutoReleaseBuffer(AutoReleaseBuffer&& other) = delete; function save_audio_fileobj (line 201) | void save_audio_fileobj( FILE: audio/paddleaudio/src/pybind/sox/io.h function namespace (line 8) | namespace paddleaudio { FILE: audio/paddleaudio/src/pybind/sox/types.cpp type paddleaudio (line 7) | namespace paddleaudio { type sox_utils (line 8) | namespace sox_utils { function Format (line 10) | Format get_format_from_string(const std::string& format) { function to_string (line 36) | std::string to_string(Encoding v) { function Encoding (line 67) | Encoding get_encoding_from_option(const tl::optional en... function BitDepth (line 86) | BitDepth get_bit_depth_from_option(const tl::optional bit_d... function get_encoding (line 109) | std::string get_encoding(sox_encoding_t encoding) { FILE: audio/paddleaudio/src/pybind/sox/types.h type class (line 10) | enum class function Encoding (line 25) | enum class Encoding { FILE: audio/paddleaudio/src/pybind/sox/utils.cpp type paddleaudio (line 9) | namespace paddleaudio { type sox_utils (line 10) | namespace sox_utils { function read_fileobj (line 12) | auto read_fileobj(py::object *fileobj, const uint64_t size, char *bu... function set_seed (line 40) | void set_seed(const int64_t seed) { function set_verbosity (line 44) | void set_verbosity(const int64_t verbosity) { function set_use_threads (line 48) | void set_use_threads(const bool use_threads) { function set_buffer_size (line 52) | void set_buffer_size(const int64_t buffer_size) { function get_buffer_size (line 56) | int64_t get_buffer_size() { function list_effects (line 60) | std::vector> list_effects() { function list_write_formats (line 76) | std::vector list_write_formats() { function list_read_formats (line 88) | std::vector list_read_formats() { function sox_format_t (line 105) | sox_format_t* SoxFormat::operator->() const noexcept { function validate_input_file (line 119) | void validate_input_file(const SoxFormat& sf, const std::string& pat... function validate_input_memfile (line 129) | void validate_input_memfile(const SoxFormat &sf) { function validate_input_tensor (line 133) | void validate_input_tensor(const py::array tensor) { function get_dtype (line 146) | py::dtype get_dtype( function convert_to_tensor (line 173) | py::array convert_to_tensor( function get_filetype (line 248) | const std::string get_filetype(const std::string path) { function get_save_encoding_for_wav (line 256) | std::tuple get_save_encoding_for_wav( function get_save_encoding (line 339) | std::tuple get_save_encoding( function get_precision (line 443) | unsigned get_precision(const std::string filetype, py::dtype dtype) { function sox_signalinfo_t (line 480) | sox_signalinfo_t get_signalinfo( function sox_encodinginfo_t (line 493) | sox_encodinginfo_t get_tensor_encodinginfo(py::dtype dtype) { function sox_encodinginfo_t (line 532) | sox_encodinginfo_t get_encodinginfo_for_save( FILE: audio/paddleaudio/src/pybind/sox/utils.h function namespace (line 11) | namespace paddleaudio { FILE: audio/paddleaudio/src/utils.cpp type paddleaudio (line 3) | namespace paddleaudio { function is_sox_available (line 7) | bool is_sox_available() { function is_kaldi_available (line 15) | bool is_kaldi_available() { function is_ffmpeg_available (line 25) | bool is_ffmpeg_available() { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/feature-fbank.cc type knf (line 27) | namespace knf { function Sqrt (line 29) | static void Sqrt(float *in_out, int32_t n) { function MelBanks (line 56) | const MelBanks *FbankComputer::GetMelBanks(float vtln_warp) { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/feature-fbank.h function namespace (line 30) | namespace knf { function class (line 77) | class FbankComputer { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/feature-functions.cc type knf (line 26) | namespace knf { function ComputePowerSpectrum (line 28) | void ComputePowerSpectrum(std::vector *complex_fft) { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/feature-functions.h function namespace (line 24) | namespace knf { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/feature-window.cc type knf (line 16) | namespace knf { function FirstSampleOfFrame (line 63) | int64_t FirstSampleOfFrame(int32_t frame, const FrameExtractionOptions... function NumFrames (line 74) | int32_t NumFrames(int64_t num_samples, const FrameExtractionOptions &o... function ExtractWindow (line 119) | void ExtractWindow(int64_t sample_offset, const std::vector &wave, function RemoveDcOffset (line 177) | static void RemoveDcOffset(float *d, int32_t n) { function InnerProduct (line 190) | float InnerProduct(const float *a, const float *b, int32_t n) { function Preemphasize (line 198) | static void Preemphasize(float *d, int32_t n, float preemph_coeff) { function ProcessWindow (line 211) | void ProcessWindow(const FrameExtractionOptions &opts, FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/feature-window.h function namespace (line 16) | namespace knf { function class (line 86) | class FeatureWindowFunction { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/fftsg.c function cdft (line 288) | void cdft(int n, int isgn, double *a, int *ip, double *w) { function rdft (line 307) | void rdft(int n, int isgn, double *a, int *ip, double *w) { function ddct (line 350) | void ddct(int n, int isgn, double *a, int *ip, double *w) { function ddst (line 405) | void ddst(int n, int isgn, double *a, int *ip, double *w) { function dfct (line 460) | void dfct(int n, double *a, double *t, int *ip, double *w) { function dfst (line 552) | void dfst(int n, double *a, double *t, int *ip, double *w) { function makewt (line 640) | void makewt(int nw, int *ip, double *w) { function makeipt (line 700) | void makeipt(int nw, int *ip) { function makect (line 719) | void makect(int nc, int *ip, double *c) { function cftfsub (line 799) | void cftfsub(int n, double *a, int *ip, int nw, double *w) { function cftbsub (line 846) | void cftbsub(int n, double *a, int *ip, int nw, double *w) { function bitrv2 (line 893) | void bitrv2(int n, int *ip, double *a) { function bitrv2conj (line 1239) | void bitrv2conj(int n, int *ip, double *a) { function bitrv216 (line 1593) | void bitrv216(double *a) { function bitrv216neg (line 1648) | void bitrv216neg(double *a) { function bitrv208 (line 1716) | void bitrv208(double *a) { function bitrv208neg (line 1738) | void bitrv208neg(double *a) { function cftf1st (line 1772) | void cftf1st(int n, double *a, double *w) { function cftb1st (line 1976) | void cftb1st(int n, double *a, double *w) { type cdft_arg_st (line 2181) | struct cdft_arg_st { type cdft_arg_t (line 2188) | typedef struct cdft_arg_st cdft_arg_t; function cftrec4_th (line 2191) | void cftrec4_th(int n, double *a, int nw, double *w) { function cftrec4 (line 2283) | void cftrec4(int n, double *a, int nw, double *w) { function cfttree (line 2304) | int cfttree(int n, int j, int k, double *a, int nw, double *w) { function cftleaf (line 2338) | void cftleaf(int n, int isplt, double *a, int nw, double *w) { function cftmdl1 (line 2402) | void cftmdl1(int n, double *a, double *w) { function cftmdl2 (line 2511) | void cftmdl2(int n, double *a, double *w) { function cftfx41 (line 2644) | void cftfx41(int n, double *a, int nw, double *w) { function cftf161 (line 2664) | void cftf161(double *a, double *w) { function cftf162 (line 2820) | void cftf162(double *a, double *w) { function cftf081 (line 3000) | void cftf081(double *a, double *w) { function cftf082 (line 3060) | void cftf082(double *a, double *w) { function cftf040 (line 3130) | void cftf040(double *a) { function cftb040 (line 3152) | void cftb040(double *a) { function cftx020 (line 3174) | void cftx020(double *a) { function rftfsub (line 3186) | void rftfsub(int n, double *a, int nc, double *c) { function rftbsub (line 3210) | void rftbsub(int n, double *a, int nc, double *c) { function dctsub (line 3234) | void dctsub(int n, double *a, int nc, double *c) { function dstsub (line 3254) | void dstsub(int n, double *a, int nc, double *c) { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/log.cc type knf (line 41) | namespace knf { function GetDateTimeStr (line 43) | std::string GetDateTimeStr() { function LocateSymbolRange (line 51) | static bool LocateSymbolRange(const std::string &trace_name, std::size... function Demangle (line 72) | static std::string Demangle(const std::string &trace_name) { function GetStackTrace (line 104) | std::string GetStackTrace() { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/log.h function namespace (line 30) | namespace knf { function class (line 268) | class Voidifier { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/mel-computations.cc type knf (line 28) | namespace knf { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/mel-computations.h function namespace (line 27) | namespace knf { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/rfft.cc type knf (line 33) | namespace knf { class Rfft::RfftImpl (line 34) | class Rfft::RfftImpl { method RfftImpl (line 36) | explicit RfftImpl(int32_t n) : n_(n), ip_(2 + std::sqrt(n / 2)), w_(... method Compute (line 40) | void Compute(float *in_out) { method Compute (line 48) | void Compute(double *in_out) { FILE: audio/paddleaudio/third_party/kaldi-native-fbank/csrc/rfft.h function namespace (line 24) | namespace knf { FILE: audio/paddleaudio/utils/download.py function decompress (line 32) | def decompress(file: str): function download_and_decompress (line 40) | def download_and_decompress(archives: List[Dict[str, str]], function load_state_dict_from_url (line 56) | def load_state_dict_from_url(url: str, path: str, md5: str=None): FILE: audio/paddleaudio/utils/env.py function _get_user_home (line 31) | def _get_user_home(): function _get_ppaudio_home (line 35) | def _get_ppaudio_home(): function _get_sub_home (line 50) | def _get_sub_home(directory): FILE: audio/paddleaudio/utils/error.py class ParameterError (line 18) | class ParameterError(Exception): FILE: audio/paddleaudio/utils/log.py class Logger (line 59) | class Logger(object): method __init__ (line 66) | def __init__(self, name: str=None): method disable (line 90) | def disable(self): method enable (line 93) | def enable(self): method is_enable (line 97) | def is_enable(self) -> bool: method __call__ (line 100) | def __call__(self, log_level: str, msg: str): method use_terminator (line 107) | def use_terminator(self, terminator: str): method processing (line 114) | def processing(self, msg: str, interval: float=0.1): FILE: audio/paddleaudio/utils/numeric.py function pcm16to32 (line 21) | def pcm16to32(audio: np.ndarray) -> np.ndarray: function _safe_cast (line 37) | def _safe_cast(y: np.ndarray, dtype: Union[type, str]) -> np.ndarray: function depth_convert (line 55) | def depth_convert(y: np.ndarray, dtype: Union[type, str]) -> np.ndarray: FILE: audio/paddleaudio/utils/sox_utils.py function set_seed (line 9) | def set_seed(seed: int): function set_verbosity (line 22) | def set_verbosity(verbosity: int): function set_buffer_size (line 40) | def set_buffer_size(buffer_size: int): function set_use_threads (line 53) | def set_use_threads(use_threads: bool): function list_effects (line 67) | def list_effects() -> Dict[str, str]: function list_read_formats (line 77) | def list_read_formats() -> List[str]: function list_write_formats (line 87) | def list_write_formats() -> List[str]: function get_buffer_size (line 97) | def get_buffer_size() -> int: FILE: audio/paddleaudio/utils/tensor_utils.py function has_tensor (line 27) | def has_tensor(val): function pad_sequence (line 41) | def pad_sequence(sequences: List[paddle.Tensor], function add_sos_eos (line 116) | def add_sos_eos(ys_pad: paddle.Tensor, sos: int, eos: int, function th_accuracy (line 169) | def th_accuracy(pad_outputs: paddle.Tensor, FILE: audio/paddleaudio/utils/time.py class Timer (line 23) | class Timer(object): method __init__ (line 26) | def __init__(self, total_step: int): method start (line 32) | def start(self): method stop (line 36) | def stop(self): method count (line 40) | def count(self) -> int: method timing (line 46) | def timing(self) -> float: method is_running (line 54) | def is_running(self) -> bool: method eta (line 58) | def eta(self) -> str: function seconds_to_hms (line 66) | def seconds_to_hms(seconds: int) -> str: FILE: audio/setup.py function check_call (line 60) | def check_call(cmd: str, shell=False, executable=None): function check_output (line 74) | def check_output(cmd: Union[str, List[str], Tuple[str]], shell=False): function _run_cmd (line 93) | def _run_cmd(cmd): function pushd (line 103) | def pushd(new_dir): function read (line 112) | def read(*names, **kwargs): function _remove (line 119) | def _remove(files: str): function _post_install (line 127) | def _post_install(install_lib_dir): class DevelopCommand (line 131) | class DevelopCommand(develop): method run (line 132) | def run(self): class TestCommand (line 138) | class TestCommand(test): method finalize_options (line 139) | def finalize_options(self): method run_tests (line 144) | def run_tests(self): method run_benchmark (line 149) | def run_benchmark(self): class UploadCommand (line 155) | class UploadCommand(Command): method initialize_options (line 159) | def initialize_options(self): method finalize_options (line 162) | def finalize_options(self): method run (line 165) | def run(self): function _get_version (line 179) | def _get_version(sha): function _make_version_file (line 188) | def _make_version_file(version, sha): function _rm_version (line 195) | def _rm_version(): class clean (line 206) | class clean(distutils.command.clean.clean): method run (line 207) | def run(self): function main (line 225) | def main(): FILE: audio/tests/backends/base.py class BackendTest (line 22) | class BackendTest(unittest.TestCase): method setUp (line 23) | def setUp(self): method initWavInput (line 26) | def initWavInput(self): method initParams (line 33) | def initParams(self): FILE: audio/tests/backends/common.py function get_encoding (line 2) | def get_encoding(ext, dtype): function get_bit_depth (line 17) | def get_bit_depth(dtype): function get_bits_per_sample (line 26) | def get_bits_per_sample(ext, dtype): FILE: audio/tests/backends/soundfile/base.py class BackendTest (line 22) | class BackendTest(unittest.TestCase): method setUp (line 23) | def setUp(self): method initWavInput (line 26) | def initWavInput(self): method initParams (line 33) | def initParams(self): FILE: audio/tests/backends/soundfile/common.py function name_func (line 8) | def name_func(func, _, params): function dtype2subtype (line 12) | def dtype2subtype(dtype): function skipIfFormatNotSupported (line 23) | def skipIfFormatNotSupported(fmt): function parameterize (line 33) | def parameterize(*params): function fetch_wav_subtype (line 38) | def fetch_wav_subtype(dtype, encoding, bits_per_sample): function get_encoding (line 59) | def get_encoding(ext, dtype): function get_bit_depth (line 74) | def get_bit_depth(dtype): function get_bits_per_sample (line 83) | def get_bits_per_sample(ext, dtype): FILE: audio/tests/backends/soundfile/info_test.py class TestInfo (line 20) | class TestInfo(TempDirMixin, unittest.TestCase): method test_wav (line 25) | def test_wav(self, dtype, sample_rate, num_channels): method test_flac (line 44) | def test_flac(self, sample_rate, num_channels): method test_sphere (line 90) | def test_sphere(self, sample_rate, num_channels, subtype_and_bit_depth): method test_unknown_subtype_warning (line 107) | def test_unknown_subtype_warning(self): class TestFileObject (line 133) | class TestFileObject(TempDirMixin, unittest.TestCase): method _test_fileobj (line 134) | def _test_fileobj(self, ext, subtype, bits_per_sample): method test_fileobj_wav (line 154) | def test_fileobj_wav(self): method test_fileobj_flac (line 159) | def test_fileobj_flac(self): method _test_tarobj (line 163) | def _test_tarobj(self, ext, subtype, bits_per_sample): method test_tarobj_wav (line 188) | def test_tarobj_wav(self): method test_tarobj_flac (line 193) | def test_tarobj_flac(self): FILE: audio/tests/backends/soundfile/load_test.py function _get_mock_path (line 22) | def _get_mock_path( function _get_mock_params (line 31) | def _get_mock_params(path: str): class SoundFileMock (line 43) | class SoundFileMock: method __init__ (line 44) | def __init__(self, path, mode): method samplerate (line 51) | def samplerate(self): method format (line 55) | def format(self): method subtype (line 66) | def subtype(self): method _prepare_read (line 71) | def _prepare_read(self, start, stop, frames): method read (line 76) | def read(self, frames, dtype, always_2d): method __enter__ (line 86) | def __enter__(self): method __exit__ (line 89) | def __exit__(self, *args, **kwargs): class MockedLoadTest (line 93) | class MockedLoadTest(unittest.TestCase): method assert_dtype (line 94) | def assert_dtype(self, ext, dtype, sample_rate, num_channels, normalize, method test_wav (line 114) | def test_wav(self, dtype, sample_rate, num_channels, normalize, method test_sphere (line 126) | def test_sphere(self, dtype, sample_rate, num_channels, normalize, method test_ogg (line 133) | def test_ogg(self, sample_rate, num_channels, normalize, channels_first): method test_flac (line 139) | def test_flac(self, sample_rate, num_channels, normalize, channels_fir... class LoadTestBase (line 145) | class LoadTestBase(TempDirMixin, unittest.TestCase): method assert_wav (line 146) | def assert_wav( method assert_sphere (line 174) | def assert_sphere( method assert_flac (line 198) | def assert_flac( class TestLoad (line 222) | class TestLoad(LoadTestBase): method test_wav (line 231) | def test_wav(self, dtype, sample_rate, num_channels, normalize, method test_wav_large (line 242) | def test_wav_large(self, dtype, sample_rate, num_channels, normalize): method test_multiple_channels (line 249) | def test_multiple_channels(self, dtype, num_channels, channels_first): class TestLoadFormat (line 269) | class TestLoadFormat(TempDirMixin, unittest.TestCase): method _make_file (line 275) | def _make_file(self, format_): method _test_format (line 285) | def _test_format(self, format_): method test_wav (line 296) | def test_wav(self, format_): method test_flac (line 304) | def test_flac(self, format_): class TestFileObject (line 308) | class TestFileObject(TempDirMixin, unittest.TestCase): method _test_fileobj (line 309) | def _test_fileobj(self, ext): method test_fileobj_wav (line 324) | def test_fileobj_wav(self): method test_fileobj_flac (line 328) | def test_fileobj_flac(self): method _test_tarfile (line 332) | def _test_tarfile(self, ext): method test_tarfile_wav (line 353) | def test_tarfile_wav(self): method test_tarfile_flac (line 357) | def test_tarfile_flac(self): FILE: audio/tests/backends/soundfile/save_test.py class MockedSaveTest (line 18) | class MockedSaveTest(unittest.TestCase): method test_wav (line 40) | def test_wav(self, dtype, sample_rate, num_channels, channels_first, method assert_non_wav (line 75) | def assert_non_wav( method test_sph (line 135) | def test_sph(self, fmt, dtype, sample_rate, num_channels, channels_first, method test_flac (line 155) | def test_flac(self, dtype, sample_rate, num_channels, channels_first, method test_ogg (line 172) | def test_ogg(self, dtype, sample_rate, num_channels, channels_first): class SaveTestBase (line 179) | class SaveTestBase(TempDirMixin, unittest.TestCase): method assert_wav (line 180) | def assert_wav(self, dtype, sample_rate, num_channels, num_frames): method _assert_non_wav (line 191) | def _assert_non_wav(self, fmt, dtype, sample_rate, num_channels): method assert_flac (line 208) | def assert_flac(self, dtype, sample_rate, num_channels): method assert_sphere (line 212) | def assert_sphere(self, dtype, sample_rate, num_channels): method assert_ogg (line 216) | def assert_ogg(self, dtype, sample_rate, num_channels): class TestSave (line 224) | class TestSave(SaveTestBase): method test_wav (line 229) | def test_wav(self, dtype, sample_rate, num_channels): method test_multiple_channels (line 236) | def test_multiple_channels(self, dtype, num_channels): method test_sphere (line 246) | def test_sphere(self, dtype, sample_rate, num_channels): method test_flac (line 254) | def test_flac(self, sample_rate, num_channels): method test_ogg (line 262) | def test_ogg(self, sample_rate, num_channels): class TestSaveParams (line 267) | class TestSaveParams(TempDirMixin, unittest.TestCase): method test_channels_first (line 271) | def test_channels_first(self, channels_first): class TestFileObject (line 282) | class TestFileObject(TempDirMixin, unittest.TestCase): method _test_fileobj (line 283) | def _test_fileobj(self, ext): method test_fileobj_wav (line 302) | def test_fileobj_wav(self): method test_fileobj_flac (line 307) | def test_fileobj_flac(self): method test_fileobj_nist (line 312) | def test_fileobj_nist(self): method test_fileobj_ogg (line 317) | def test_fileobj_ogg(self): FILE: audio/tests/backends/soundfile/test_io.py class TestIO (line 26) | class TestIO(BackendTest): method test_load_mono_channel (line 27) | def test_load_mono_channel(self): method test_load_multi_channels (line 36) | def test_load_multi_channels(self): method test_save_mono_channel (line 46) | def test_save_mono_channel(self): method test_save_multi_channels (line 59) | def test_save_multi_channels(self): FILE: audio/tests/backends/sox_io/common.py function name_func (line 8) | def name_func(func, _, params): function dtype2subtype (line 12) | def dtype2subtype(dtype): function skipIfFormatNotSupported (line 23) | def skipIfFormatNotSupported(fmt): function parameterize (line 33) | def parameterize(*params): function fetch_wav_subtype (line 38) | def fetch_wav_subtype(dtype, encoding, bits_per_sample): function get_encoding (line 59) | def get_encoding(ext, dtype): function get_bit_depth (line 74) | def get_bit_depth(dtype): function get_bits_per_sample (line 83) | def get_bits_per_sample(ext, dtype): FILE: audio/tests/backends/sox_io/info_test.py class TestInfo (line 27) | class TestInfo(TempDirMixin, unittest.TestCase): method test_wav (line 37) | def test_wav(self, dtype, sample_rate, num_channels): method test_wav_multiple_channels (line 60) | def test_wav_multiple_channels(self, dtype, sample_rate, num_channels): method test_ulaw (line 76) | def test_ulaw(self): method test_alaw (line 96) | def test_alaw(self): class FileObjTestBase (line 138) | class FileObjTestBase(TempDirMixin): method _gen_file (line 139) | def _gen_file(self, method _gen_comment_file (line 162) | def _gen_comment_file(self, comments): class Unseekable (line 169) | class Unseekable: method __init__ (line 170) | def __init__(self, fileobj): method read (line 173) | def read(self, n): class TestFileObject (line 177) | class TestFileObject(FileObjTestBase, unittest.TestCase): method _query_fileobj (line 178) | def _query_fileobj(self, method _query_bytesio (line 197) | def _query_bytesio(self, ext, dtype, sample_rate, num_channels, num_fr... method _query_tarfile (line 204) | def _query_tarfile(self, ext, dtype, sample_rate, num_channels, num_fr... method _set_buffer_size (line 217) | def _set_buffer_size(self, buffer_size): method test_fileobj (line 231) | def test_fileobj(self, ext, dtype): method test_bytesio (line 254) | def test_bytesio(self, ext, dtype): method test_bytesio_tiny (line 277) | def test_bytesio_tiny(self, ext, dtype): method test_tarfile (line 303) | def test_tarfile(self, ext, dtype): FILE: audio/tests/backends/sox_io/load_test.py class TestLoad (line 21) | class TestLoad(unittest.TestCase): method assert_wav (line 22) | def assert_wav(self, dtype, sample_rate, num_channels, normalize, dura... method test_wav (line 50) | def test_wav(self, dtype, sample_rate, num_channels, normalize): FILE: audio/tests/backends/sox_io/save_test.py function _get_sox_encoding (line 18) | def _get_sox_encoding(encoding): class TestSaveBase (line 29) | class TestSaveBase(TempDirMixin): method assert_save_consistency (line 30) | def assert_save_consistency( class TestSave (line 151) | class TestSave(TestSaveBase, unittest.TestCase): method test_save_wav (line 165) | def test_save_wav(self, test_mode, enc_params): method test_save_wav_dtype (line 181) | def test_save_wav_dtype(self, test_mode, params): FILE: audio/tests/backends/sox_io/smoke_test.py class SmokeTest (line 15) | class SmokeTest(TempDirMixin, unittest.TestCase): method run_smoke_test (line 25) | def run_smoke_test(self, method test_wav (line 59) | def test_wav(self, dtype, sample_rate, num_channels): method test_flac (line 95) | def test_flac(self, sample_rate, num_channels, compression_level): class SmokeTestFileObj (line 101) | class SmokeTestFileObj(unittest.TestCase): method run_smoke_test (line 111) | def run_smoke_test(self, method test_wav (line 144) | def test_wav(self, dtype, sample_rate, num_channels): method test_flac (line 181) | def test_flac(self, sample_rate, num_channels, compression_level): FILE: audio/tests/backends/sox_io/sox_effect_test.py class TestSoxEffects (line 21) | class TestSoxEffects(unittest.TestCase): method test_init (line 22) | def test_init(self): class TestSoxEffectsTensor (line 28) | class TestSoxEffectsTensor(TempDirMixin, unittest.TestCase): method test_apply_no_effect (line 35) | def test_apply_no_effect(self, dtype, sample_rate, num_channels, method test_apply_effects (line 60) | def test_apply_effects(self, args): class TestSoxEffectsFile (line 88) | class TestSoxEffectsFile(TempDirMixin, unittest.TestCase): method test_apply_no_effect (line 100) | def test_apply_no_effect(self, dtype, sample_rate, num_channels, method test_apply_effects_str (line 119) | def test_apply_effects_str(self, args): method test_apply_effects_path (line 143) | def test_apply_effects_path(self): class TestFileFormats (line 171) | class TestFileFormats(TempDirMixin, unittest.TestCase): method test_wav (line 181) | def test_wav(self, dtype, sample_rate, num_channels): class TestFileObject (line 258) | class TestFileObject(TempDirMixin, unittest.TestCase): method test_fileobj (line 262) | def test_fileobj(self, ext, compression): method test_bytesio (line 293) | def test_bytesio(self, ext, compression): method test_tarfile (line 328) | def test_tarfile(self, ext, compression): FILE: audio/tests/benchmark/log_melspectrogram.py function enable_cpu_device (line 51) | def enable_cpu_device(): function enable_gpu_device (line 55) | def enable_gpu_device(): function log_melspectrogram (line 63) | def log_melspectrogram(): function test_log_melspect_cpu (line 67) | def test_log_melspect_cpu(benchmark): function test_log_melspect_gpu (line 76) | def test_log_melspect_gpu(benchmark): function melspectrogram_torchaudio (line 90) | def melspectrogram_torchaudio(): function log_melspectrogram_torchaudio (line 94) | def log_melspectrogram_torchaudio(): function test_log_melspect_cpu_torchaudio (line 99) | def test_log_melspect_cpu_torchaudio(benchmark): function test_log_melspect_gpu_torchaudio (line 113) | def test_log_melspect_gpu_torchaudio(benchmark): FILE: audio/tests/benchmark/melspectrogram.py function enable_cpu_device (line 51) | def enable_cpu_device(): function enable_gpu_device (line 55) | def enable_gpu_device(): function melspectrogram (line 63) | def melspectrogram(): function test_melspect_cpu (line 67) | def test_melspect_cpu(benchmark): function test_melspect_gpu (line 75) | def test_melspect_gpu(benchmark): function melspectrogram_torchaudio (line 87) | def melspectrogram_torchaudio(): function test_melspect_cpu_torchaudio (line 91) | def test_melspect_cpu_torchaudio(benchmark): function test_melspect_gpu_torchaudio (line 101) | def test_melspect_gpu_torchaudio(benchmark): FILE: audio/tests/benchmark/mfcc.py function enable_cpu_device (line 60) | def enable_cpu_device(): function enable_gpu_device (line 64) | def enable_gpu_device(): function mfcc (line 72) | def mfcc(): function test_mfcc_cpu (line 76) | def test_mfcc_cpu(benchmark): function test_mfcc_gpu (line 84) | def test_mfcc_gpu(benchmark): function mfcc_torchaudio (line 97) | def mfcc_torchaudio(): function test_mfcc_cpu_torchaudio (line 101) | def test_mfcc_cpu_torchaudio(benchmark): function test_mfcc_gpu_torchaudio (line 113) | def test_mfcc_gpu_torchaudio(benchmark): FILE: audio/tests/common_utils/case_utils.py function name_func (line 7) | def name_func(func, _, params): class TempDirMixin (line 11) | class TempDirMixin: method get_base_temp_dir (line 17) | def get_base_temp_dir(cls): method tearDownClass (line 28) | def tearDownClass(cls): method get_temp_path (line 46) | def get_temp_path(self, *paths): FILE: audio/tests/common_utils/data_utils.py function get_asset_path (line 11) | def get_asset_path(*paths): function load_params (line 16) | def load_params(*paths): function load_effects_params (line 21) | def load_effects_params(*paths): function convert_tensor_encoding (line 34) | def convert_tensor_encoding( function get_sinusoid (line 100) | def get_sinusoid( FILE: audio/tests/common_utils/parameterized_utils.py function _name_func (line 7) | def _name_func(func, _, params): function nested_params (line 19) | def nested_params(*params_set, name_func=_name_func): FILE: audio/tests/common_utils/sox_utils.py function get_encoding (line 6) | def get_encoding(dtype): function get_bit_depth (line 16) | def get_bit_depth(dtype): function gen_audio_file (line 26) | def gen_audio_file( function convert_audio_file (line 85) | def convert_audio_file(src_path, function _flatten (line 104) | def _flatten(effects): function run_sox_effect (line 112) | def run_sox_effect(input_file, FILE: audio/tests/common_utils/wav_utils.py function normalize_wav (line 7) | def normalize_wav(tensor: paddle.Tensor) -> paddle.Tensor: function get_wav_data (line 25) | def get_wav_data( function load_wav (line 85) | def load_wav(path: str, normalize=True, channels_first=True) -> paddle.T... function save_wav (line 98) | def save_wav(path, data, sample_rate, channels_first=True): FILE: audio/tests/features/base.py class FeatTest (line 25) | class FeatTest(unittest.TestCase): method setUp (line 26) | def setUp(self): method setUpDevice (line 31) | def setUpDevice(self, device='cpu'): method initWavInput (line 34) | def initWavInput(self, url=wav_url): method initParams (line 47) | def initParams(self): FILE: audio/tests/features/test_istft.py class TestIstft (line 25) | class TestIstft(FeatTest): method initParams (line 26) | def initParams(self): method test_istft (line 31) | def test_istft(self): FILE: audio/tests/features/test_kaldi.py class TestKaldi (line 24) | class TestKaldi(FeatTest): method initParams (line 25) | def initParams(self): method test_window (line 29) | def test_window(self): method test_fbank (line 62) | def test_fbank(self): method test_mfcc (line 70) | def test_mfcc(self): FILE: audio/tests/features/test_kaldi_feat.py class TestKaldiFbank (line 28) | class TestKaldiFbank(unittest.TestCase): method test_fbank (line 29) | def test_fbank(self): FILE: audio/tests/features/test_librosa.py class TestLibrosa (line 24) | class TestLibrosa(FeatTest): method initParams (line 25) | def initParams(self): method test_stft (line 35) | def test_stft(self): method test_istft (line 65) | def test_istft(self): method test_mel (line 109) | def test_mel(self): method test_melspect (line 144) | def test_melspect(self): method test_log_melspect (line 185) | def test_log_melspect(self): method test_mfcc (line 226) | def test_mfcc(self): FILE: audio/tests/features/test_log_melspectrogram.py class TestLogMelSpectrogram (line 24) | class TestLogMelSpectrogram(FeatTest): method initParams (line 25) | def initParams(self): method test_log_melspect (line 30) | def test_log_melspect(self): FILE: audio/tests/features/test_spectrogram.py class TestSpectrogram (line 24) | class TestSpectrogram(FeatTest): method initParams (line 25) | def initParams(self): method test_spectrogram (line 29) | def test_spectrogram(self): FILE: audio/tests/features/test_stft.py class TestStft (line 24) | class TestStft(FeatTest): method initParams (line 25) | def initParams(self): method test_stft (line 30) | def test_stft(self): FILE: audio/tools/setup_helpers/extension.py function _get_build (line 20) | def _get_build(var, default=False): function get_ext_modules (line 43) | def get_ext_modules(): class CMakeBuild (line 55) | class CMakeBuild(build_ext): method run (line 56) | def run(self): method build_extension (line 63) | def build_extension(self, ext): method get_ext_filename (line 147) | def get_ext_filename(self, fullname): FILE: dataset/chime3_background/chime3_background.py function download (line 51) | def download(url, md5sum, target_dir, filename=None): function unpack (line 69) | def unpack(filepath, target_dir): function create_manifest (line 84) | def create_manifest(data_dir, manifest_path): function prepare_chime3 (line 111) | def prepare_chime3(url, md5sum, target_dir, manifest_path): function main (line 134) | def main(): FILE: dataset/librispeech/librispeech.py function create_manifest (line 74) | def create_manifest(data_dir, manifest_path): function prepare_dataset (line 134) | def prepare_dataset(url, md5sum, target_dir, manifest_path): function main (line 149) | def main(): FILE: dataset/mini_librispeech/mini_librispeech.py function create_manifest (line 54) | def create_manifest(data_dir, manifest_path): function prepare_dataset (line 110) | def prepare_dataset(url, md5sum, target_dir, manifest_path): function main (line 125) | def main(): FILE: dataset/rir_noise/rir_noise.py function create_manifest (line 55) | def create_manifest(data_dir, manifest_path_prefix): function prepare_dataset (line 93) | def prepare_dataset(url, md5sum, target_dir, manifest_path): function main (line 105) | def main(): FILE: dataset/tal_cs/tal_cs.py function create_manifest (line 49) | def create_manifest(data_dir, manifest_path): function main (line 105) | def main(): FILE: dataset/ted_en_zh/ted_en_zh.py function create_manifest (line 43) | def create_manifest(data_dir, manifest_path_prefix): function prepare_dataset (line 100) | def prepare_dataset(src_dir, manifest_path=None): function main (line 108) | def main(): FILE: dataset/thchs30/thchs30.py function read_trn (line 58) | def read_trn(filepath): function resolve_symlink (line 80) | def resolve_symlink(filepath): function create_manifest (line 93) | def create_manifest(data_dir, manifest_path_prefix): function prepare_dataset (line 156) | def prepare_dataset(url, md5sum, target_dir, manifest_path, subset): function main (line 170) | def main(): FILE: dataset/timit/timit.py function tn (line 104) | def tn(text): function read_txt (line 112) | def read_txt(filepath: str) -> str: function read_algin (line 118) | def read_algin(filepath: str) -> str: function create_manifest (line 139) | def create_manifest(data_dir, manifest_path_prefix): function prepare_dataset (line 212) | def prepare_dataset(url, md5sum, target_dir, manifest_path): function main (line 232) | def main(): FILE: dataset/timit/timit_kaldi_standard_split.py function create_manifest (line 43) | def create_manifest(data_dir, manifest_path_prefix): function prepare_dataset (line 98) | def prepare_dataset(src_dir, manifest_path=None): function main (line 106) | def main(): FILE: dataset/voxceleb/voxceleb1.py function create_manifest (line 91) | def create_manifest(data_dir, manifest_path_prefix): function prepare_dataset (line 143) | def prepare_dataset(base_url, data_list, target_dir, manifest_path, function prepare_trial (line 182) | def prepare_trial(base_url, data_list, target_dir): function main (line 193) | def main(): FILE: dataset/voxceleb/voxceleb2.py function create_manifest (line 82) | def create_manifest(data_dir, manifest_path_prefix): function download_dataset (line 142) | def download_dataset(base_url, data_list, target_data, target_dir, datas... function main (line 194) | def main(): FILE: dataset/voxforge/voxforge.py function download_and_unpack (line 71) | def download_and_unpack(target_dir, url): function select_dialects (line 87) | def select_dialects(target_dir, dialect_list): function generate_manifest (line 111) | def generate_manifest(data_dir, manifest_path): function merge_manifests (line 194) | def merge_manifests(manifest_files, save_path): function prepare_dataset (line 205) | def prepare_dataset(url, dialects, target_dir, manifest_prefix, is_merge): function main (line 230) | def main(): FILE: demos/TTSAndroid/app/src/androidTest/java/com/baidu/paddle/lite/demo/tts/ExampleInstrumentedTest.java class ExampleInstrumentedTest (line 17) | @RunWith(AndroidJUnit4.class) method useAppContext (line 19) | @Test FILE: demos/TTSAndroid/app/src/main/java/com/baidu/paddle/lite/demo/tts/AppCompatPreferenceActivity.java class AppCompatPreferenceActivity (line 36) | public abstract class AppCompatPreferenceActivity extends PreferenceActi... method onCreate (line 39) | @Override method onPostCreate (line 46) | @Override method getSupportActionBar (line 52) | public ActionBar getSupportActionBar() { method getMenuInflater (line 57) | @Override method setContentView (line 62) | @Override method setContentView (line 67) | @Override method setContentView (line 72) | @Override method addContentView (line 77) | @Override method onPostResume (line 82) | @Override method onTitleChanged (line 88) | @Override method onConfigurationChanged (line 94) | @Override method onStop (line 100) | @Override method onDestroy (line 106) | @Override method invalidateOptionsMenu (line 112) | public void invalidateOptionsMenu() { method getDelegate (line 116) | private AppCompatDelegate getDelegate() { FILE: demos/TTSAndroid/app/src/main/java/com/baidu/paddle/lite/demo/tts/MainActivity.java class MainActivity (line 35) | public class MainActivity extends AppCompatActivity implements View.OnCl... method onClick (line 93) | @Override method initMediaPlayer (line 117) | private void initMediaPlayer() { method onPrepared (line 133) | @Override method onError (line 138) | @Override method onCreate (line 146) | @Override method onResume (line 243) | @Override method loadModel (line 274) | public void loadModel() { method runModel (line 279) | public void runModel() { method onLoadModel (line 284) | public boolean onLoadModel() { method onRunModel (line 289) | public boolean onRunModel() { method onLoadModelSuccessed (line 293) | public boolean onLoadModelSuccessed() { method onLoadModelFailed (line 299) | public void onLoadModelFailed() { method onRunModelSuccessed (line 302) | public void onRunModelSuccessed() { method onRunModelFailed (line 323) | public void onRunModelFailed() { method onSettingsClicked (line 327) | public void onSettingsClicked() { method onCreateOptionsMenu (line 331) | @Override method onOptionsItemSelected (line 338) | @Override method onRequestPermissionsResult (line 350) | @Override method onDestroy (line 361) | @Override method requestAllPermissions (line 374) | private boolean requestAllPermissions() { method onItemSelected (line 387) | @Override method onNothingSelected (line 396) | @Override FILE: demos/TTSAndroid/app/src/main/java/com/baidu/paddle/lite/demo/tts/Predictor.java class Predictor (line 15) | public class Predictor { method init (line 26) | public boolean init(Context appCtx, String modelPath, String AMmodelNa... method loadModel (line 42) | protected PaddlePredictor loadModel(Context appCtx, String modelPath, ... method releaseModel (line 81) | public void releaseModel() { method runModel (line 90) | public boolean runModel(float[] phones) { method getAMOutput (line 102) | public Tensor getAMOutput(float[] phones, PaddlePredictor am_predictor) { method getVOCOutput (line 123) | public float[] getVOCOutput(Tensor input, PaddlePredictor voc_predicto... method isLoaded (line 140) | public boolean isLoaded() { method inferenceTime (line 145) | public float inferenceTime() { FILE: demos/TTSAndroid/app/src/main/java/com/baidu/paddle/lite/demo/tts/SettingsActivity.java class SettingsActivity (line 13) | public class SettingsActivity extends AppCompatPreferenceActivity implem... method onCreate (line 25) | @Override method reloadPreferenceAndUpdateUI (line 58) | private void reloadPreferenceAndUpdateUI() { method onResume (line 89) | @Override method onPause (line 96) | @Override method onSharedPreferenceChanged (line 102) | @Override FILE: demos/TTSAndroid/app/src/main/java/com/baidu/paddle/lite/demo/tts/Utils.java class Utils (line 18) | public class Utils { method copyFileFromAssets (line 19) | public static void copyFileFromAssets(Context appCtx, String srcPath, ... method copyDirectoryFromAssets (line 47) | public static void copyDirectoryFromAssets(Context appCtx, String srcD... method getSDCardDirectory (line 70) | public static String getSDCardDirectory() { method rawToWave (line 74) | public static void rawToWave(String file, float[] data, int samplerate... method writeInt (line 120) | private static void writeInt(final DataOutputStream output, final int ... method writeShort (line 127) | private static void writeShort(final DataOutputStream output, final sh... method writeString (line 132) | private static void writeString(final DataOutputStream output, final S... method FloatArray2ShortArray (line 138) | public static short[] FloatArray2ShortArray(float[] values) { FILE: demos/TTSAndroid/app/src/test/java/com/baidu/paddle/lite/demo/tts/ExampleUnitTest.java class ExampleUnitTest (line 12) | public class ExampleUnitTest { method addition_isCorrect (line 13) | @Test FILE: demos/TTSArmLinux/src/Predictor.hpp class PredictorInterface (line 25) | class PredictorInterface { class Predictor (line 66) | class Predictor : public PredictorInterface { method Init (line 68) | bool Init(const std::string &AcousticModelPath, method LoadModel (line 99) | std::shared_ptr LoadModel( method ReleaseModel (line 116) | void ReleaseModel() override { method RunModel (line 121) | bool RunModel(const std::vector &phones) override { method GetAcousticModelOutput (line 142) | std::unique_ptr GetAcousticModelOutput( method GetVocoderOutput (line 162) | std::unique_ptr GetVocoderOutput( method VocoderOutputToWav (line 185) | void VocoderOutputToWav( method IsLoaded (line 199) | bool IsLoaded() override { method GetInferenceTime (line 204) | float GetInferenceTime() override { return inference_time_; } method GetWavSize (line 208) | int GetWavSize() override { return wav_.size() * sizeof(WavDataType); } method GetWavDuration (line 211) | float GetWavDuration() override { method GetRTF (line 217) | float GetRTF() override { return GetInferenceTime() / GetWavDuration(); } method ReleaseWav (line 219) | void ReleaseWav() override { wav_.clear(); } method WriteWavToFile (line 221) | bool WriteWavToFile(const std::string &wavPath) override { type WavHeader (line 247) | struct WavHeader { type WavAudioFormat (line 268) | enum WavAudioFormat { method Abs (line 277) | inline float Abs(float number) { return (number < 0) ? -number : numbe... FILE: demos/TTSArmLinux/src/main.cc function main (line 48) | int main(int argc, char *argv[]) { FILE: demos/TTSCppFrontend/front_demo/front_demo.cpp function main (line 26) | int main(int argc, char** argv) { FILE: demos/TTSCppFrontend/front_demo/gentools/gen_dict_paddlespeech.py function get_phone (line 20) | def get_phone(frontend, function gen_word2phone_dict (line 34) | def gen_word2phone_dict(frontend, function main (line 59) | def main(): FILE: demos/TTSCppFrontend/front_demo/gentools/genid.py function GenIdFile (line 21) | def GenIdFile(file, idfile): FILE: demos/TTSCppFrontend/front_demo/gentools/word2phones.py function GenPhones (line 23) | def GenPhones(initials, finals, separate=True): FILE: demos/TTSCppFrontend/src/base/type_conv.cpp type ppspeech (line 16) | namespace ppspeech { function wstring2utf8string (line 18) | std::string wstring2utf8string(const std::wstring& str) { function utf8string2wstring (line 24) | std::wstring utf8string2wstring(const std::string& str) { FILE: demos/TTSCppFrontend/src/base/type_conv.h function namespace (line 23) | namespace ppspeech { FILE: demos/TTSCppFrontend/src/front/front_interface.cpp type ppspeech (line 16) | namespace ppspeech { FILE: demos/TTSCppFrontend/src/front/front_interface.h function namespace (line 28) | namespace ppspeech { FILE: demos/TTSCppFrontend/src/front/text_normalize.cpp type ppspeech (line 16) | namespace ppspeech { FILE: demos/TTSCppFrontend/src/front/text_normalize.h function namespace (line 26) | namespace ppspeech { FILE: demos/audio_content_search/acs_clinet.py function main (line 20) | def main(args): FILE: demos/audio_searching/src/audio_search.py function audio_path (line 53) | def audio_path(audio_path): function get_progress (line 64) | def get_progress(): class Item (line 74) | class Item(BaseModel): function load_audios (line 80) | async def load_audios(item: Item): function search_audio (line 92) | async def search_audio(request: Request, function search_local_audio (line 120) | async def search_local_audio(request: Request, function count_audio (line 143) | async def count_audio(table_name: str=None): function drop_tables (line 155) | async def drop_tables(table_name: str=None): FILE: demos/audio_searching/src/encode.py function get_audio_embedding (line 22) | def get_audio_embedding(path): FILE: demos/audio_searching/src/logs.py class MultiprocessHandler (line 23) | class MultiprocessHandler(logging.FileHandler): method __init__ (line 28) | def __init__(self, method should_change_file_to_write (line 70) | def should_change_file_to_write(self): method do_change_file (line 80) | def do_change_file(self): method get_files_to_delete (line 95) | def get_files_to_delete(self): method emit (line 116) | def emit(self, record): function write_log (line 130) | def write_log(): FILE: demos/audio_searching/src/milvus_helpers.py class MilvusHelper (line 29) | class MilvusHelper: method __init__ (line 43) | def __init__(self): method set_collection (line 54) | def set_collection(self, collection_name): method has_collection (line 65) | def has_collection(self, collection_name): method create_collection (line 73) | def create_collection(self, collection_name): method insert (line 101) | def insert(self, collection_name, vectors): method create_index (line 118) | def create_index(self, collection_name): method delete_collection (line 142) | def delete_collection(self, collection_name): method search_vectors (line 153) | def search_vectors(self, collection_name, vectors, top_k): method count (line 174) | def count(self, collection_name): FILE: demos/audio_searching/src/mysql_helpers.py class MySQLHelper (line 26) | class MySQLHelper(): method __init__ (line 38) | def __init__(self): method test_connection (line 48) | def test_connection(self): method create_mysql_table (line 61) | def create_mysql_table(self, table_name): method load_data_to_mysql (line 72) | def load_data_to_mysql(self, table_name, data): method search_by_milvus_ids (line 85) | def search_by_milvus_ids(self, ids, table_name): method delete_table (line 100) | def delete_table(self, table_name): method delete_all_data (line 111) | def delete_all_data(self, table_name): method count_table (line 123) | def count_table(self, table_name): method create_mysql_table_vpr (line 136) | def create_mysql_table_vpr(self, table_name): method load_data_to_mysql_vpr (line 147) | def load_data_to_mysql_vpr(self, table_name, data): method list_vpr (line 159) | def list_vpr(self, table_name): method search_audio_vpr (line 179) | def search_audio_vpr(self, table_name, spk_id): method delete_data_vpr (line 193) | def delete_data_vpr(self, table_name, spk_id): FILE: demos/audio_searching/src/operations/count.py function do_count (line 20) | def do_count(table_name, milvus_cli): function do_count_vpr (line 36) | def do_count_vpr(table_name, mysql_cli): function do_list (line 50) | def do_list(table_name, mysql_cli): function do_get (line 64) | def do_get(table_name, spk_id, mysql_cli): FILE: demos/audio_searching/src/operations/drop.py function do_drop (line 20) | def do_drop(table_name, milvus_cli, mysql_cli): function do_drop_vpr (line 37) | def do_drop_vpr(table_name, mysql_cli): function do_delete (line 51) | def do_delete(table_name, spk_id, mysql_cli): FILE: demos/audio_searching/src/operations/load.py function get_audios (line 23) | def get_audios(path): function extract_features (line 36) | def extract_features(audio_dir): function format_data (line 63) | def format_data(ids, names): function do_load (line 74) | def do_load(table_name, audio_dir, milvus_cli, mysql_cli): function do_enroll (line 88) | def do_enroll(table_name, spk_id, audio_path, mysql_cli): FILE: demos/audio_searching/src/operations/search.py function do_search (line 23) | def do_search(host, table_name, audio_path, milvus_cli, mysql_cli): function do_search_vpr (line 45) | def do_search_vpr(host, table_name, audio_path, mysql_cli): FILE: demos/audio_searching/src/test_audio_search.py function download_audio_data (line 23) | def download_audio_data(): function test_drop (line 34) | def test_drop(): function test_load (line 42) | def test_load(): function test_progress (line 54) | def test_progress(): function test_count (line 63) | def test_count(): function test_search (line 72) | def test_search(): function test_data (line 82) | def test_data(): FILE: demos/audio_searching/src/test_vpr_search.py function download_audio_data (line 23) | def download_audio_data(): function test_drop (line 34) | def test_drop(): function test_enroll_local (line 42) | def test_enroll_local(spk: str, audio: str): function test_search_local (line 55) | def test_search_local(): function test_list (line 64) | def test_list(): function test_data (line 72) | def test_data(spk: str): function test_del (line 82) | def test_del(spk: str): function test_count (line 92) | def test_count(): FILE: demos/audio_searching/src/vpr_search.py function vpr_enroll (line 52) | async def vpr_enroll(table_name: str=None, function vpr_enroll_local (line 73) | async def vpr_enroll_local(table_name: str=None, function vpr_recog (line 87) | async def vpr_recog(request: Request, function vpr_recog_local (line 113) | async def vpr_recog_local(request: Request, function vpr_del (line 134) | async def vpr_del(table_name: str=None, spk_id: dict=None): function vpr_list (line 149) | async def vpr_list(table_name: str=None): function vpr_data (line 163) | async def vpr_data( function vpr_count (line 180) | async def vpr_count(table_name: str=None): function drop_tables (line 192) | async def drop_tables(table_name: str=None): function audio_path (line 204) | def audio_path(audio_path): FILE: demos/speech_web/speech_server/main.py class NlpBase (line 82) | class NlpBase(BaseModel): class TtsBase (line 86) | class TtsBase(BaseModel): class Audios (line 90) | class Audios: method __init__ (line 91) | def __init__(self) -> None: function speech2textOffline (line 105) | async def speech2textOffline(files: List[UploadFile]): function speech2textOfflineFile (line 125) | async def speech2textOfflineFile(files: List[UploadFile]): function speech2textOnlineRecive (line 158) | async def speech2textOnlineRecive(files: List[UploadFile]): function collectEnv (line 170) | async def collectEnv(files: List[UploadFile]): function stopRecord (line 181) | async def stopRecord(): function resumeRecord (line 190) | async def resumeRecord(): function websocket_endpoint (line 198) | async def websocket_endpoint(websocket: WebSocket): function websocket_endpoint_online (line 221) | async def websocket_endpoint_online(websocket: WebSocket): function chatOffline (line 314) | async def chatOffline(nlp_base: NlpBase): function ieOffline (line 324) | async def ieOffline(nlp_base: NlpBase): function text2speechOffline (line 340) | async def text2speechOffline(tts_base: TtsBase): function stream_tts (line 364) | async def stream_tts(request_body: TtsBase): function stream_ttsWS (line 371) | async def stream_ttsWS(websocket: WebSocket): function vpr_enroll (line 405) | async def vpr_enroll(table_name: str=None, function vpr_recog (line 427) | async def vpr_recog(request: Request, function vpr_del (line 448) | async def vpr_del(spk_id: dict=None): function vpr_list (line 461) | async def vpr_list(): function vpr_database64 (line 471) | async def vpr_database64(vprId: int): function vpr_data (line 491) | async def vpr_data(vprId: int): FILE: demos/speech_web/speech_server/src/AudioManeger.py class AudioMannger (line 10) | class AudioMannger: method __init__ (line 11) | def __init__(self, method init (line 45) | def init(self): method clear_audio (line 50) | def clear_audio(self): method clear_asr (line 54) | def clear_asr(self): method compute_chunk_volume (line 57) | def compute_chunk_volume(self, start_index, pcm_bins): method is_speech (line 67) | def is_speech(self, start_index, pcm_bins): method compute_env_volume (line 80) | def compute_env_volume(self, pcm_bins): method stream_asr (line 96) | def stream_asr(self, pcm_bin): method save_audio (line 131) | def save_audio(self, file_path): method end (line 142) | def end(self): method stop (line 148) | def stop(self): method resume (line 152) | def resume(self): FILE: demos/speech_web/speech_server/src/SpeechBase/asr.py function readWave (line 8) | def readWave(samples): class ASR (line 30) | class ASR: method __init__ (line 31) | def __init__( method offlineASR (line 39) | def offlineASR(self, samples, sample_rate=16000): method onlineASR (line 47) | def onlineASR(self, samples: bytes=None, is_finished=False): FILE: demos/speech_web/speech_server/src/SpeechBase/nlp.py class NLP (line 4) | class NLP: method __init__ (line 5) | def __init__(self, ie_model_path=None): method chat (line 17) | def chat(self, text): method ie (line 21) | def ie(self, text): FILE: demos/speech_web/speech_server/src/SpeechBase/sql_helper.py function dict_factory (line 8) | def dict_factory(cursor, row): class DataBase (line 15) | class DataBase(object): method __init__ (line 16) | def __init__(self, db_path: str): method init_database (line 31) | def init_database(self): method execute_base (line 46) | def execute_base(self, sql, data_dict): method insert_one (line 50) | def insert_one(self, username, vector_base64: str, wav_path): method select_all (line 69) | def select_all(self): method select_by_id (line 76) | def select_by_id(self, vpr_id): method select_by_username (line 84) | def select_by_username(self, username): method drop_by_username (line 92) | def drop_by_username(self, username): method drop_all (line 100) | def drop_all(self): method drop_table (line 108) | def drop_table(self): method encode_vector (line 116) | def encode_vector(self, vector: np.ndarray): method decode_vector (line 119) | def decode_vector(self, vector_base64, dtype=np.float32): FILE: demos/speech_web/speech_server/src/SpeechBase/tts.py class TTS (line 22) | class TTS: method __init__ (line 23) | def __init__(self, config_path): method depadding (line 36) | def depadding(self, data, chunk_num, chunk_id, block, pad, upsample): method offlineTTS (line 53) | def offlineTTS(self, text): method streamTTS (line 83) | def streamTTS(self, text): method streamTTSBytes (line 184) | def streamTTSBytes(self, text): method after_process (line 194) | def after_process(self, wav): method streamTTS_TVM (line 201) | def streamTTS_TVM(self, text): FILE: demos/speech_web/speech_server/src/SpeechBase/vpr.py class VPR (line 11) | class VPR: method __init__ (line 12) | def __init__(self, db_path, dim, top_k) -> None: method init (line 28) | def init(self): method faiss_enroll (line 43) | def faiss_enroll(self, idx, vc): method vpr_enroll (line 46) | def vpr_enroll(self, username, wav_path): method vpr_recog (line 60) | def vpr_recog(self, wav_path): method do_search_vpr (line 75) | def do_search_vpr(self, wav_path): method vpr_del (line 86) | def vpr_del(self, username): method vpr_list (line 96) | def vpr_list(self): method do_list (line 100) | def do_list(self): method do_get_wav (line 107) | def do_get_wav(self, vpr_idx): method vpr_data (line 111) | def vpr_data(self, idx): method vpr_droptable (line 116) | def vpr_droptable(self): FILE: demos/speech_web/speech_server/src/SpeechBase/vpr_encode.py function get_audio_embedding (line 10) | def get_audio_embedding(path): FILE: demos/speech_web/speech_server/src/WebsocketManeger.py class ConnectionManager (line 6) | class ConnectionManager: method __init__ (line 7) | def __init__(self): method connect (line 11) | async def connect(self, ws: WebSocket): method disconnect (line 17) | def disconnect(self, ws: WebSocket): method send_personal_message (line 22) | async def send_personal_message(message: str, ws: WebSocket): method broadcast (line 26) | async def broadcast(self, message: str): FILE: demos/speech_web/speech_server/src/ernie_sat.py class SAT (line 8) | class SAT: method __init__ (line 9) | def __init__(self): method zh_synthesize_edit (line 28) | def zh_synthesize_edit(self, method crossclone (line 74) | def crossclone(self, method en_synthesize_edit (line 117) | def en_synthesize_edit(self, method get_cmd (line 159) | def get_cmd(self, FILE: demos/speech_web/speech_server/src/finetune.py function find_max_ckpt (line 8) | def find_max_ckpt(model_path): class FineTune (line 19) | class FineTune: method __init__ (line 20) | def __init__(self): method finetune (line 32) | def finetune(self, input_dir, exp_dir='temp', epoch=100): method synthesize (line 88) | def synthesize(self, text, wav_name, out_wav_dir, exp_dir='temp'): FILE: demos/speech_web/speech_server/src/ge2e_clone.py class VoiceCloneGE2E (line 9) | class VoiceCloneGE2E(): method __init__ (line 10) | def __init__(self): method vc (line 27) | def vc(self, text, input_wav, out_wav): FILE: demos/speech_web/speech_server/src/robot.py class Robot (line 11) | class Robot: method __init__ (line 12) | def __init__(self, method warm_up_asrmodel (line 28) | def warm_up_asrmodel(self, asr_init_path): method speech2text (line 46) | def speech2text(self, audio_file): method text2speech (line 52) | def text2speech(self, text, outpath): method text2speechStream (line 58) | def text2speechStream(self, text): method text2speechStreamBytes (line 62) | def text2speechStreamBytes(self, text): method chat (line 66) | def chat(self, text): method ie (line 70) | def ie(self, text): FILE: demos/speech_web/speech_server/src/tdnn_clone.py class VoiceCloneTDNN (line 9) | class VoiceCloneTDNN(): method __init__ (line 10) | def __init__(self): method vc (line 25) | def vc(self, text, input_wav, out_wav): FILE: demos/speech_web/speech_server/src/util.py function get_ngpu (line 11) | def get_ngpu(): function randName (line 18) | def randName(n=5): function SuccessRequest (line 22) | def SuccessRequest(result=None, message="ok"): function ErrorRequest (line 26) | def ErrorRequest(result=None, message="error"): function run_cmd (line 30) | def run_cmd(cmd, output_name): FILE: demos/speech_web/speech_server/vc.py class VcBase (line 104) | class VcBase(BaseModel): class VcBaseText (line 109) | class VcBaseText(BaseModel): class VcBaseSAT (line 116) | class VcBaseSAT(BaseModel): class FTPath (line 125) | class FTPath(BaseModel): class VcBaseFT (line 129) | class VcBaseFT(BaseModel): class VcBaseFTModel (line 135) | class VcBaseFTModel(BaseModel): class VcBaseFTSyn (line 139) | class VcBaseFTSyn(BaseModel): function getVCList (line 149) | def getVCList(path): function saveFiles (line 160) | async def saveFiles(files, SavePath): function VcDownload (line 191) | async def VcDownload(base: VcBase): function VcDownloadBase64 (line 200) | async def VcDownloadBase64(base: VcBase): function VcUpload (line 219) | async def VcUpload(files: List[UploadFile]): function VcList (line 252) | async def VcList(): function VcFileGet (line 259) | async def VcFileGet(base: VcBase): function VcFileDel (line 268) | async def VcFileDel(base: VcBase): function VcCloneG2P (line 278) | async def VcCloneG2P(base: VcBaseText): function VcCloneSAT (line 308) | async def VcCloneSAT(base: VcBaseSAT): function SatList (line 401) | async def SatList(): function SATUpload (line 416) | async def SATUpload(files: List[UploadFile]): function FineTuneList (line 453) | async def FineTuneList(Path: FTPath): function FTGetNewDir (line 474) | async def FTGetNewDir(): function FTUpload (line 486) | async def FTUpload(base: VcBaseFT): function FTModel (line 504) | async def FTModel(base: VcBaseFTModel): function FTSyn (line 530) | async def FTSyn(base: VcBaseFTSyn): FILE: demos/speech_web/web_client/src/api/ApiASR.js function asrOffline (line 5) | async function asrOffline(params){ function asrCollentEnv (line 13) | async function asrCollentEnv(params){ function asrStopRecord (line 21) | async function asrStopRecord(){ function asrResumeRecord (line 27) | async function asrResumeRecord(){ FILE: demos/speech_web/web_client/src/api/ApiNLP.js function nlpChat (line 5) | async function nlpChat(text){ function nlpIE (line 11) | async function nlpIE(text){ FILE: demos/speech_web/web_client/src/api/ApiTTS.js function ttsOffline (line 4) | async function ttsOffline(text){ FILE: demos/speech_web/web_client/src/api/ApiVC.js function vcUpload (line 5) | async function vcUpload(params){ function satUpload (line 11) | async function satUpload(params){ function fineTuneUpload (line 17) | async function fineTuneUpload(params){ function vcDel (line 23) | async function vcDel(params){ function vcList (line 29) | async function vcList(){ function satList (line 34) | async function satList(){ function fineTuneList (line 40) | async function fineTuneList(params){ function fineTuneNewDir (line 46) | async function fineTuneNewDir(){ function vcDownload (line 52) | async function vcDownload(params){ function vcDownloadBase64 (line 58) | async function vcDownloadBase64(params){ function vcCloneG2P (line 65) | async function vcCloneG2P(params){ function vcCloneSAT (line 71) | async function vcCloneSAT(params){ function vcCloneFineTune (line 77) | async function vcCloneFineTune(params){ function vcCloneFineTuneSyn (line 83) | async function vcCloneFineTuneSyn(params){ FILE: demos/speech_web/web_client/src/api/ApiVPR.js function vprEnroll (line 5) | async function vprEnroll(params){ function vprRecog (line 11) | async function vprRecog(params){ function vprDel (line 17) | async function vprDel(params){ function vprList (line 23) | async function vprList(){ function vprData (line 29) | async function vprData(params){ FILE: demos/story_talker/ocr.py function evaluate (line 25) | def evaluate(args, ocr): function main (line 52) | def main(): FILE: demos/streaming_asr_server/local/websocket_client.py function main (line 27) | def main(args): FILE: demos/streaming_asr_server/local/websocket_client_srt.py function convert_to_wav (line 28) | def convert_to_wav(input_file): function format_time (line 44) | def format_time(sec): function results2srt (line 52) | def results2srt(results, srt_file): function main (line 93) | def main(args): FILE: demos/streaming_tts_serving_fastdeploy/streaming_tts_serving/1/model.py function depadding (line 52) | def depadding(data, chunk_num, chunk_id, block, pad, upsample): class TritonPythonModel (line 70) | class TritonPythonModel: method initialize (line 75) | def initialize(self, args): method execute (line 124) | def execute(self, requests): method response_thread (line 180) | def response_thread(self, response_sender, text): method finalize (line 264) | def finalize(self): FILE: demos/streaming_tts_serving_fastdeploy/streaming_tts_serving/stream_client.py class UserData (line 14) | class UserData: method __init__ (line 15) | def __init__(self): function callback (line 24) | def callback(user_data, result, error): function async_stream_send (line 31) | def async_stream_send(triton_client, values, request_id, model_name): FILE: demos/style_fs2/style_syn.py function evaluate (line 31) | def evaluate(args, fastspeech2_config, pwg_config): function main (line 138) | def main(): FILE: examples/aishell/asr3/local/aishell_prepare.py function prepare_aishell (line 49) | def prepare_aishell(data_folder, save_folder, skip_prep=False): function main (line 119) | def main(): FILE: examples/ami/sd0/local/ami_prepare.py function prepare_ami (line 38) | def prepare_ami( function get_RTTM_per_rec (line 185) | def get_RTTM_per_rec(segs, spkrs_list, rec_id): function prepare_segs_for_RTTM (line 222) | def prepare_segs_for_RTTM(list_ids, out_rttm_file, audio_dir, annot_dir, function is_overlapped (line 280) | def is_overlapped(end1, start2): function merge_rttm_intervals (line 297) | def merge_rttm_intervals(rttm_segs): function get_subsegments (line 329) | def get_subsegments(merged_segs, max_subseg_dur=3.0, overlap=1.5): function prepare_metadata (line 377) | def prepare_metadata(rttm_file, save_dir, data_dir, filename, max_subseg... function skip (line 477) | def skip(save_folder, conf, meta_files, opt_file): FILE: examples/ami/sd0/local/ami_splits.py function get_AMI_split (line 23) | def get_AMI_split(split_option): FILE: examples/ami/sd0/local/compute_embdding.py function prepare_subset_json (line 39) | def prepare_subset_json(full_meta_data, rec_id, out_meta_file): function create_dataloader (line 62) | def create_dataloader(json_file, batch_size): function main (line 86) | def main(args, config): FILE: examples/ami/sd0/local/dataio.py function save_pkl (line 21) | def save_pkl(obj, file): function load_pickle (line 44) | def load_pickle(pickle_path): function load_pkl (line 62) | def load_pkl(file): FILE: examples/ami/sd0/local/experiment.py function diarize_dataset (line 34) | def diarize_dataset( function dev_pval_tuner (line 156) | def dev_pval_tuner(full_meta, save_dir, config): function dev_ahc_threshold_tuner (line 192) | def dev_ahc_threshold_tuner(full_meta, save_dir, config): function dev_nn_tuner (line 227) | def dev_nn_tuner(full_meta, split_type, save_dir, config): function dev_tuner (line 264) | def dev_tuner(full_meta, split_type, save_dir, config): function main (line 295) | def main(args, config): FILE: examples/iwslt2012/punc0/local/preprocess.py function process_sentence (line 4) | def process_sentence(line): FILE: examples/librispeech/asr2/local/espnet_json_to_manifest.py function main (line 6) | def main(args): FILE: examples/librispeech/asr5/compute_wer.py function characterize (line 16) | def characterize(string): function stripoff_tags (line 49) | def stripoff_tags(x): function normalize (line 65) | def normalize(sentence, ignore_words, cs, split=None): class Calculator (line 86) | class Calculator: method __init__ (line 87) | def __init__(self): method calculate (line 96) | def calculate(self, lab, rec): method overall (line 218) | def overall(self): method cluster (line 228) | def cluster(self, data): method keys (line 239) | def keys(self): function width (line 243) | def width(string): function default_cluster (line 247) | def default_cluster(word): function usage (line 287) | def usage(): function main (line 296) | def main(): FILE: examples/other/cc-cedict/local/parser.py function parse_line (line 30) | def parse_line(line): function remove_surnames (line 58) | def remove_surnames(): function main (line 65) | def main(): FILE: examples/other/g2p/compare_badcase.py function compare (line 18) | def compare(prefolder, curfolder): FILE: examples/other/g2p/get_g2p_data.py function get_baker_data (line 21) | def get_baker_data(root_dir): function get_g2p_phones (line 53) | def get_g2p_phones(data_dict, frontend): function main (line 60) | def main(): FILE: examples/other/g2p/test_g2p.py function text_cleaner (line 24) | def text_cleaner(raw_text): function get_avg_wer (line 31) | def get_avg_wer(raw_dict, ref_dict, frontend, output_dir): function main (line 58) | def main(): FILE: examples/other/mfa/local/detect_oov.py function detect_oov (line 21) | def detect_oov(corpus_dir, lexicon_path, transcription_pattern="*.lab"): FILE: examples/other/mfa/local/generate_canton_lexicon_wavlabs.py function check (line 9) | def check(str): function get_lines (line 26) | def get_lines(canton): FILE: examples/other/mfa/local/generate_lexicon.py function rule (line 43) | def rule(C, V, R, T): function generate_lexicon (line 152) | def generate_lexicon(with_tone=False, with_erhua=False): function generate_symbols (line 166) | def generate_symbols(lexicon): FILE: examples/other/mfa/local/reorganize_aishell3.py function link_wav (line 30) | def link_wav(root_dir: Union[str, Path], output_dir: Union[str, Path]): function write_lab (line 42) | def write_lab(root_dir: Union[str, Path], function reorganize_aishell3 (line 67) | def reorganize_aishell3(root_dir: Union[str, Path], FILE: examples/other/mfa/local/reorganize_baker.py function get_transcripts (line 54) | def get_transcripts(path: Union[str, Path]): function resample_and_save (line 68) | def resample_and_save(source, target, sr=16000): function reorganize_baker (line 74) | def reorganize_baker(root_dir: Union[str, Path], function insert_rhy (line 117) | def insert_rhy(sentence_first, sentence_second): function normalize_rhy (line 139) | def normalize_rhy(root_dir: Union[str, Path]): FILE: examples/other/mfa/local/reorganize_ljspeech.py function link_wav (line 30) | def link_wav(root_dir: Union[str, Path], output_dir: Union[str, Path]): function write_lab (line 38) | def write_lab(root_dir: Union[str, Path], output_dir: Union[str, Path]): function reorganize_ljspeech (line 52) | def reorganize_ljspeech(root_dir: Union[str, Path], FILE: examples/other/mfa/local/reorganize_vctk.py function resample_and_save (line 35) | def resample_and_save(source, target, sr=16000): function write_wav (line 41) | def write_wav(root_dir: Union[str, Path], output_dir: Union[str, Path]): function write_txt (line 81) | def write_txt(root_dir: Union[str, Path], output_dir: Union[str, Path]): function reorganize_vctk (line 98) | def reorganize_vctk(root_dir: Union[str, Path], output_dir: Union[str, P... FILE: examples/other/ngram_lm/s0/local/kenlm_score_test.py function test_score (line 33) | def test_score(): function test_full_scores_chars (line 59) | def test_full_scores_chars(): function test_full_scores_words (line 81) | def test_full_scores_words(): function test_full_scores_chars_length (line 105) | def test_full_scores_chars_length(): function test_ppl_sentence (line 122) | def test_ppl_sentence(): FILE: examples/other/rhy/local/pre_for_sp_aishell.py function replace_rhy_with_punc (line 11) | def replace_rhy_with_punc(line): function pre_and_write (line 20) | def pre_and_write(data, file): function main (line 29) | def main(): FILE: examples/other/rhy/local/pre_for_sp_csmsc.py function replace_rhy_with_punc (line 9) | def replace_rhy_with_punc(line): function pre_and_write (line 18) | def pre_and_write(data, file): function main (line 27) | def main(): FILE: examples/other/tn/get_textnorm_data.py function main (line 18) | def main(): FILE: examples/other/tn/test_textnorm.py function del_en_add_space (line 24) | def del_en_add_space(input: str): function get_avg_cer (line 31) | def get_avg_cer(raw_dict, ref_dict, text_normalizer, output_dir): function main (line 54) | def main(): FILE: examples/other/tts_finetune/tts3/local/check_oov.py function check_phone (line 32) | def check_phone(label_file: Union[str, Path], function get_pronunciation_phones (line 95) | def get_pronunciation_phones(lexicon_file: Union[str, Path]): function get_mfa_phone (line 111) | def get_mfa_phone(mfa_phone_file: Union[str, Path]): function get_am_phone (line 123) | def get_am_phone(am_phone_file: Union[str, Path]): function get_check_result (line 134) | def get_check_result(label_file: Union[str, Path], FILE: examples/other/tts_finetune/tts3/local/extract_feature.py function read_stats (line 38) | def read_stats(stats_file: Union[str, Path]): function get_stats (line 46) | def get_stats(pretrained_model_dir: Path): function get_map (line 57) | def get_map(duration_file: Union[str, Path], function get_extractor (line 114) | def get_extractor(config): function normalize (line 139) | def normalize(speech_scaler, function extract_feature (line 217) | def extract_feature(duration_file: str, FILE: examples/other/tts_finetune/tts3/local/finetune.py class TrainArgs (line 44) | class TrainArgs(): method __init__ (line 45) | def __init__(self, function freeze_layer (line 65) | def freeze_layer(model, layers: List[str]): function train_sp (line 76) | def train_sp(args, config): FILE: examples/other/tts_finetune/tts3/local/get_mfa_result.py function get_mfa_result (line 29) | def get_mfa_result( FILE: examples/other/tts_finetune/tts3/local/prepare_env.py function generate_finetune_env (line 19) | def generate_finetune_env(output_dir: Path, pretrained_model_dir: Path): FILE: examples/ted_en_zh/st1/local/convert_torch_to_paddle.py function torch2paddle (line 24) | def torch2paddle(args): FILE: examples/ted_en_zh/st1/local/ted_en_zh.py function data_process (line 22) | def data_process(src_dir, tgt_dir, wav_dir_list, text_file_list, FILE: examples/tess/cls0/local/train.py function _collate_features (line 32) | def _collate_features(batch): FILE: examples/thchs30/align0/local/gen_word2phone.py function is_Chinese (line 32) | def is_Chinese(ch): function proc_line (line 38) | def proc_line(line: str): function gen_lexicon (line 65) | def gen_lexicon(lexicon_files: List[Union[str, Path]], FILE: examples/thchs30/align0/local/reorganize_thchs30.py function link_wav (line 27) | def link_wav(root_dir: Union[str, Path], output_dir: Union[str, Path]): function write_lab (line 38) | def write_lab(root_dir: Union[str, Path], function reorganize_thchs30 (line 58) | def reorganize_thchs30(root_dir: Union[str, Path], FILE: examples/voxceleb/sv0/local/data_prepare.py function main (line 27) | def main(args, config): FILE: examples/voxceleb/sv0/local/make_rirs_noise_csv_dataset_from_json.py function get_chunks_list (line 33) | def get_chunks_list(wav_file: str, function generate_csv (line 73) | def generate_csv(wav_files, function prepare_data (line 104) | def prepare_data(args, config): FILE: examples/voxceleb/sv0/local/make_vox_csv_dataset_from_json.py function prepare_csv (line 34) | def prepare_csv(wav_files, output_file, config, split_chunks=True): function get_enroll_test_list (line 93) | def get_enroll_test_list(dataset_list, verification_file): function get_train_dev_list (line 135) | def get_train_dev_list(dataset_list, target_dir, split_ratio): function prepare_data (line 181) | def prepare_data(args, config): FILE: examples/voxceleb/sv0/local/make_voxceleb_kaldi_trial.py function main (line 39) | def main(voxceleb_trial, trial): FILE: examples/wenetspeech/asr1/local/extract_meta.py function get_args (line 22) | def get_args(): function meta_analysis (line 35) | def meta_analysis(input_json, output_dir): function main (line 95) | def main(): FILE: examples/wenetspeech/asr1/local/process_opus.py function read_file (line 34) | def read_file(wav_scp, segments): function output (line 57) | def output(output_wav_scp, utt_list, seg_path_list, start_time_list, function main (line 87) | def main(): FILE: paddlespeech/audio/backends/common.py class AudioInfo (line 4) | class AudioInfo: method __init__ (line 33) | def __init__( method __str__ (line 46) | def __str__(self): FILE: paddlespeech/audio/backends/soundfile_backend.py function resample (line 45) | def resample(y: np.ndarray, function to_mono (line 76) | def to_mono(y: np.ndarray, merge_type: str='average') -> np.ndarray: function soundfile_load_ (line 124) | def soundfile_load_(file: os.PathLike, function normalize (line 152) | def normalize(y: np.ndarray, norm_type: str='linear', function soundfile_save (line 180) | def soundfile_save(y: np.ndarray, sr: int, file: os.PathLike) -> None: function soundfile_load (line 207) | def soundfile_load( function _get_subtype_for_wav (line 263) | def _get_subtype_for_wav(dtype: paddle.dtype, function _get_subtype_for_sphere (line 308) | def _get_subtype_for_sphere(encoding: str, bits_per_sample: int): function _get_subtype (line 322) | def _get_subtype(dtype: paddle.dtype, function save (line 348) | def save( function load (line 495) | def load( function _get_bit_depth (line 624) | def _get_bit_depth(subtype): function _get_encoding (line 648) | def _get_encoding(format: str, subtype: str): function info (line 654) | def info(filepath: str, format: Optional[str]=None) -> AudioInfo: FILE: paddlespeech/audio/compliance/kaldi.py function _get_epsilon (line 38) | def _get_epsilon(dtype): function _next_power_of_2 (line 42) | def _next_power_of_2(x: int) -> int: function _get_strided (line 46) | def _get_strided(waveform: Tensor, function _feature_window_function (line 72) | def _feature_window_function( function _get_log_energy (line 96) | def _get_log_energy(strided_input: Tensor, epsilon: Tensor, function _get_waveform_and_window_properties (line 106) | def _get_waveform_and_window_properties( function _get_window (line 136) | def _get_window(waveform: Tensor, function _subtract_column_mean (line 203) | def _subtract_column_mean(tensor: Tensor, subtract_mean: bool) -> Tensor: function spectrogram (line 210) | def spectrogram(waveform: Tensor, function _inverse_mel_scale_scalar (line 273) | def _inverse_mel_scale_scalar(mel_freq: float) -> float: function _inverse_mel_scale (line 277) | def _inverse_mel_scale(mel_freq: Tensor) -> Tensor: function _mel_scale_scalar (line 281) | def _mel_scale_scalar(freq: float) -> float: function _mel_scale (line 285) | def _mel_scale(freq: Tensor) -> Tensor: function _vtln_warp_freq (line 289) | def _vtln_warp_freq(vtln_low_cutoff: float, function _vtln_warp_mel_freq (line 321) | def _vtln_warp_mel_freq(vtln_low_cutoff: float, function _get_mel_banks (line 332) | def _get_mel_banks(num_bins: int, function fbank (line 406) | def fbank(waveform: Tensor, function _get_dct_matrix (line 513) | def _get_dct_matrix(n_mfcc: int, n_mels: int) -> Tensor: function _get_lifter_coeffs (line 520) | def _get_lifter_coeffs(n_mfcc: int, cepstral_lifter: float) -> Tensor: function mfcc (line 526) | def mfcc(waveform: Tensor, FILE: paddlespeech/audio/compliance/librosa.py function _pad_center (line 50) | def _pad_center(data: np.ndarray, size: int, axis: int=-1, function _split_frames (line 71) | def _split_frames(x: np.ndarray, function _check_audio (line 119) | def _check_audio(y, mono=True) -> bool: function hz_to_mel (line 146) | def hz_to_mel(frequencies: Union[float, List[float], np.ndarray], function mel_to_hz (line 186) | def mel_to_hz(mels: Union[float, List[float], np.ndarray], function mel_frequencies (line 224) | def mel_frequencies(n_mels: int=128, function fft_frequencies (line 248) | def fft_frequencies(sr: int, n_fft: int) -> np.ndarray: function compute_fbank_matrix (line 261) | def compute_fbank_matrix(sr: int, function stft (line 328) | def stft(x: np.ndarray, function power_to_db (line 402) | def power_to_db(spect: np.ndarray, function mfcc (line 448) | def mfcc(x: np.ndarray, function melspectrogram (line 486) | def melspectrogram(x: np.ndarray, function spectrogram (line 551) | def spectrogram(x: np.ndarray, function mu_encode (line 587) | def mu_encode(x: np.ndarray, mu: int=255, quantized: bool=True) -> np.nd... function mu_decode (line 605) | def mu_decode(y: np.ndarray, mu: int=255, quantized: bool=True) -> np.nd... function _randint (line 626) | def _randint(high: int) -> int: function depth_augment (line 634) | def depth_augment(y: np.ndarray, function adaptive_spect_augment (line 659) | def adaptive_spect_augment(spect: np.ndarray, function spect_augment (line 702) | def spect_augment(spect: np.ndarray, function random_crop1d (line 751) | def random_crop1d(y: np.ndarray, crop_len: int) -> np.ndarray: function random_crop2d (line 768) | def random_crop2d(s: np.ndarray, crop_len: int, FILE: paddlespeech/audio/datasets/dataset.py class AudioClassificationDataset (line 34) | class AudioClassificationDataset(paddle.io.Dataset): method __init__ (line 39) | def __init__(self, method _get_data (line 66) | def _get_data(self, input_file: str): method _convert_to_record (line 69) | def _convert_to_record(self, idx): method __getitem__ (line 91) | def __getitem__(self, idx): method __len__ (line 99) | def __len__(self): FILE: paddlespeech/audio/datasets/esc50.py class ESC50 (line 26) | class ESC50(AudioClassificationDataset): method __init__ (line 108) | def __init__(self, method _get_meta_info (line 126) | def _get_meta_info(self) -> List[collections.namedtuple]: method _get_data (line 133) | def _get_data(self, mode: str, split: int) -> Tuple[List[str], List[in... FILE: paddlespeech/audio/datasets/voxceleb.py class VoxCeleb (line 35) | class VoxCeleb(Dataset): method __init__ (line 81) | def __init__( method _get_data (line 130) | def _get_data(self): method _convert_to_record (line 187) | def _convert_to_record(self, idx: int): method _get_chunks (line 223) | def _get_chunks(seg_dur, audio_id, audio_duration): method _get_audio_info (line 232) | def _get_audio_info(self, wav_file: str, method generate_csv (line 259) | def generate_csv(self, method prepare_data (line 285) | def prepare_data(self): method __getitem__ (line 352) | def __getitem__(self, idx): method __len__ (line 355) | def __len__(self): FILE: paddlespeech/audio/functional/functional.py function hz_to_mel (line 33) | def hz_to_mel(freq: Union[Tensor, float], function mel_to_hz (line 76) | def mel_to_hz(mel: Union[float, Tensor], function mel_frequencies (line 109) | def mel_frequencies(n_mels: int=64, function fft_frequencies (line 134) | def fft_frequencies(sr: int, n_fft: int, dtype: str='float32') -> Tensor: function compute_fbank_matrix (line 148) | def compute_fbank_matrix(sr: int, function power_to_db (line 208) | def power_to_db(spect: Tensor, function create_dct (line 241) | def create_dct(n_mfcc: int, FILE: paddlespeech/audio/functional/window.py class WindowFunctionRegister (line 22) | class WindowFunctionRegister(object): method __init__ (line 23) | def __init__(self): method register (line 26) | def register(self): method get (line 34) | def get(self, name): function _cat (line 42) | def _cat(x: List[Tensor], data_type: str) -> Tensor: function _acosh (line 48) | def _acosh(x: Union[Tensor, float]) -> Tensor: function _extend (line 55) | def _extend(M: int, sym: bool) -> bool: function _len_guards (line 64) | def _len_guards(M: int) -> bool: function _truncate (line 73) | def _truncate(w: Tensor, needed: bool) -> Tensor: function _general_gaussian (line 82) | def _general_gaussian(M: int, p, sig, sym: bool=True, function _general_cosine (line 98) | def _general_cosine(M: int, a: float, sym: bool=True, function _general_hamming (line 114) | def _general_hamming(M: int, alpha: float, sym: bool=True, function _taylor (line 123) | def _taylor(M: int, function _hamming (line 179) | def _hamming(M: int, sym: bool=True, dtype: str='float64') -> Tensor: function _hann (line 188) | def _hann(M: int, sym: bool=True, dtype: str='float64') -> Tensor: function _tukey (line 197) | def _tukey(M: int, alpha=0.5, sym: bool=True, dtype: str='float64') -> T... function _gaussian (line 227) | def _gaussian(M: int, std: float, sym: bool=True, function _exponential (line 244) | def _exponential(M: int, function _triang (line 266) | def _triang(M: int, sym: bool=True, dtype: str='float64') -> Tensor: function _bohman (line 284) | def _bohman(M: int, sym: bool=True, dtype: str='float64') -> Tensor: function _blackman (line 301) | def _blackman(M: int, sym: bool=True, dtype: str='float64') -> Tensor: function _cosine (line 312) | def _cosine(M: int, sym: bool=True, dtype: str='float64') -> Tensor: function get_window (line 322) | def get_window( FILE: paddlespeech/audio/streamdata/autodecode.py function paddle_loads (line 26) | def paddle_loads(data): function tenbin_loads (line 39) | def tenbin_loads(data): function msgpack_loads (line 45) | def msgpack_loads(data): function npy_loads (line 51) | def npy_loads(data): function cbor_loads (line 58) | def cbor_loads(data): function basichandlers (line 88) | def basichandlers(key, data): function call_extension_handler (line 119) | def call_extension_handler(key, data, f, extensions): function handle_extension (line 137) | def handle_extension(extensions, f): class ImageHandler (line 178) | class ImageHandler: method __init__ (line 205) | def __init__(self, imagespec, extensions=image_extensions): method __call__ (line 216) | def __call__(self, key, data): function imagehandler (line 258) | def imagehandler(imagespec, extensions=image_extensions): function paddle_audio (line 297) | def paddle_audio(key, data): class Continue (line 319) | class Continue: method __init__ (line 330) | def __init__(self, key, data): function gzfilter (line 339) | def gzfilter(key, data): class Decoder (line 363) | class Decoder: method __init__ (line 370) | def __init__(self, handlers, pre=None, post=None, only=None, partial=F... method decode1 (line 393) | def decode1(self, key, data): method decode (line 409) | def decode(self, sample): method __call__ (line 436) | def __call__(self, sample): FILE: paddlespeech/audio/streamdata/cache.py function lru_cleanup (line 20) | def lru_cleanup(cache_dir, cache_size, keyfn=os.path.getctime, verbose=F... function download (line 46) | def download(url, dest, chunk_size=1024**2, verbose=False): function pipe_cleaner (line 59) | def pipe_cleaner(spec): function get_file_cached (line 70) | def get_file_cached( function get_filetype (line 96) | def get_filetype(fname): function check_tar_format (line 102) | def check_tar_format(fname): function cached_url_opener (line 111) | def cached_url_opener( function cached_tarfile_samples (line 167) | def cached_tarfile_samples( FILE: paddlespeech/audio/streamdata/compat.py class FluidInterface (line 18) | class FluidInterface: method batched (line 19) | def batched(self, batchsize): method dynamic_batched (line 22) | def dynamic_batched(self, max_frames_in_batch): method unbatched (line 25) | def unbatched(self): method listed (line 28) | def listed(self, batchsize, partial=True): method unlisted (line 32) | def unlisted(self): method log_keys (line 35) | def log_keys(self, logfile=None): method shuffle (line 38) | def shuffle(self, size, **kw): method map (line 44) | def map(self, f, handler=reraise_exception): method decode (line 47) | def decode(self, method map_dict (line 62) | def map_dict(self, handler=reraise_exception, **kw): method select (line 65) | def select(self, predicate, **kw): method to_tuple (line 68) | def to_tuple(self, *args, handler=reraise_exception): method map_tuple (line 71) | def map_tuple(self, *args, handler=reraise_exception): method slice (line 74) | def slice(self, *args): method rename (line 77) | def rename(self, **kw): method rsample (line 80) | def rsample(self, p=0.5): method rename_keys (line 83) | def rename_keys(self, *args, **kw): method extract_keys (line 86) | def extract_keys(self, *args, **kw): method xdecode (line 89) | def xdecode(self, *args, **kw): method audio_data_filter (line 92) | def audio_data_filter(self, *args, **kw): method audio_tokenize (line 95) | def audio_tokenize(self, *args, **kw): method resample (line 98) | def resample(self, *args, **kw): method audio_compute_fbank (line 101) | def audio_compute_fbank(self, *args, **kw): method audio_spec_aug (line 104) | def audio_spec_aug(self, *args, **kw): method sort (line 107) | def sort(self, size=500): method audio_padding (line 110) | def audio_padding(self): method audio_cmvn (line 113) | def audio_cmvn(self, cmvn_file): class WebDataset (line 117) | class WebDataset(DataPipeline, FluidInterface): method __init__ (line 120) | def __init__( class FluidWrapper (line 170) | class FluidWrapper(DataPipeline, FluidInterface): method __init__ (line 173) | def __init__(self, initial): class WebLoader (line 178) | class WebLoader(DataPipeline, FluidInterface): method __init__ (line 179) | def __init__(self, *args, **kw): FILE: paddlespeech/audio/streamdata/extradatasets.py class MockDataset (line 17) | class MockDataset(IterableDataset): method __init__ (line 23) | def __init__(self, sample, length): method __iter__ (line 32) | def __iter__(self): class repeatedly (line 38) | class repeatedly(IterableDataset, PipelineStage): method __init__ (line 41) | def __init__(self, source, nepochs=None, nbatches=None, length=None): method invoke (line 51) | def invoke(self, source): class with_epoch (line 59) | class with_epoch(IterableDataset): method __init__ (line 70) | def __init__(self, dataset, length): method __getstate__ (line 81) | def __getstate__(self): method invoke (line 90) | def invoke(self, dataset): class with_length (line 111) | class with_length(IterableDataset, PipelineStage): method __init__ (line 114) | def __init__(self, dataset, length): method invoke (line 124) | def invoke(self, dataset): method __len__ (line 128) | def __len__(self): FILE: paddlespeech/audio/streamdata/filters.py class FilterFunction (line 38) | class FilterFunction(object): method __init__ (line 44) | def __init__(self, f, *args, **kw): method __call__ (line 50) | def __call__(self, data): method __str__ (line 54) | def __str__(self): method __repr__ (line 58) | def __repr__(self): class RestCurried (line 63) | class RestCurried(object): method __init__ (line 69) | def __init__(self, f): method __call__ (line 73) | def __call__(self, *args, **kw): function pipelinefilter (line 78) | def pipelinefilter(f): function reraise_exception (line 85) | def reraise_exception(exn): function identity (line 93) | def identity(x): function compose2 (line 98) | def compose2(f, g): function compose (line 103) | def compose(*args): function pipeline (line 108) | def pipeline(source, *args): function getfirst (line 115) | def getfirst(a, keys, default=None, missing_is_error=True): function parse_field_spec (line 131) | def parse_field_spec(fields): function transform_with (line 142) | def transform_with(sample, transformers): function _info (line 168) | def _info(data, fmt=None, n=3, every=-1, width=50, stream=sys.stderr, na... function pick (line 193) | def pick(buf, rng): function _shuffle (line 201) | def _shuffle(data, bufsize=1000, initial=100, rng=None, handler=None): class detshuffle (line 234) | class detshuffle(PipelineStage): method __init__ (line 235) | def __init__(self, bufsize=1000, initial=100, seed=0, epoch=-1): method run (line 241) | def run(self, src): function _select (line 248) | def _select(data, predicate): function _log_keys (line 262) | def _log_keys(data, logfile=None): function _minedecode (line 283) | def _minedecode(x): function _decode (line 290) | def _decode(data, *args, handler=reraise_exception, **kw): function _map (line 311) | def _map(data, f, handler=reraise_exception): function _rename (line 331) | def _rename(data, handler=reraise_exception, keep=True, **kw): function _associate (line 365) | def _associate(data, associator, **kw): function _map_dict (line 379) | def _map_dict(data, handler=reraise_exception, **kw): function _to_tuple (line 401) | def _to_tuple(data, function _map_tuple (line 431) | def _map_tuple(data, *args, handler=reraise_exception): function _unlisted (line 454) | def _unlisted(data): function _unbatched (line 465) | def _unbatched(data): function _rsample (line 477) | def _rsample(data, p=0.5): function _extract_keys (line 490) | def _extract_keys(source, function _rename_keys (line 520) | def _rename_keys(source, function decode_bin (line 561) | def decode_bin(stream): function decode_text (line 565) | def decode_text(stream): function decode_pickle (line 570) | def decode_pickle(stream): function find_decoder (line 581) | def find_decoder(decoders, path): function _xdecode (line 592) | def _xdecode( function _audio_data_filter (line 624) | def _audio_data_filter(source, function _audio_tokenize (line 679) | def _audio_tokenize(source, function _audio_resample (line 745) | def _audio_resample(source, resample_rate=16000): function _audio_compute_fbank (line 774) | def _audio_compute_fbank(source, function _audio_spec_aug (line 814) | def _audio_spec_aug( function _sort (line 870) | def _sort(source, sort_size=500): function _batched (line 901) | def _batched(source, batch_size=16): function dynamic_batched (line 924) | def dynamic_batched(source, max_frames_in_batch=12000): function _audio_padding (line 953) | def _audio_padding(source): function _audio_cmvn (line 988) | def _audio_cmvn(source, cmvn_file): function _placeholder (line 1002) | def _placeholder(source): FILE: paddlespeech/audio/streamdata/gopen.py class Pipe (line 18) | class Pipe: method __init__ (line 33) | def __init__( method __str__ (line 58) | def __str__(self): method check_status (line 61) | def check_status(self): method wait_for_child (line 67) | def wait_for_child(self): method read (line 81) | def read(self, *args, **kw): method write (line 87) | def write(self, *args, **kw): method readLine (line 93) | def readLine(self, *args, **kw): method close (line 100) | def close(self): method __enter__ (line 106) | def __enter__(self): method __exit__ (line 110) | def __exit__(self, etype, value, traceback): function set_options (line 115) | def set_options(obj, function gopen_file (line 144) | def gopen_file(url, mode="rb", bufsize=8192): function gopen_pipe (line 156) | def gopen_pipe(url, mode="rb", bufsize=8192): function gopen_curl (line 183) | def gopen_curl(url, mode="rb", bufsize=8192): function gopen_htgs (line 210) | def gopen_htgs(url, mode="rb", bufsize=8192): function gopen_gsutil (line 232) | def gopen_gsutil(url, mode="rb", bufsize=8192): function gopen_error (line 259) | def gopen_error(url, *args, **kw): function gopen (line 282) | def gopen(url, mode="rb", bufsize=8192, **kw): function reader (line 324) | def reader(url, **kw): FILE: paddlespeech/audio/streamdata/handlers.py function reraise_exception (line 20) | def reraise_exception(exn): function ignore_and_continue (line 25) | def ignore_and_continue(exn): function warn_and_continue (line 30) | def warn_and_continue(exn): function ignore_and_stop (line 37) | def ignore_and_stop(exn): function warn_and_stop (line 42) | def warn_and_stop(exn): FILE: paddlespeech/audio/streamdata/mix.py function round_robin_shortest (line 16) | def round_robin_shortest(*sources): function round_robin_longest (line 27) | def round_robin_longest(*sources): class RoundRobin (line 38) | class RoundRobin(IterableDataset): method __init__ (line 39) | def __init__(self, datasets, longest=False): method __iter__ (line 43) | def __iter__(self): function random_samples (line 52) | def random_samples(sources, probs=None, longest=False): class RandomMix (line 71) | class RandomMix(IterableDataset): method __init__ (line 72) | def __init__(self, datasets, probs=None, longest=False): method __iter__ (line 77) | def __iter__(self): FILE: paddlespeech/audio/streamdata/paddle_utils.py class IterableDataset (line 15) | class IterableDataset: class DataLoader (line 20) | class DataLoader: FILE: paddlespeech/audio/streamdata/pipeline.py function add_length_method (line 15) | def add_length_method(obj): class DataPipeline (line 27) | class DataPipeline(IterableDataset, PipelineStage): method __init__ (line 30) | def __init__(self, *args, **kwargs): method invoke (line 44) | def invoke(self, f, *args, **kwargs): method iterator1 (line 57) | def iterator1(self): method iterator (line 64) | def iterator(self): method __iter__ (line 70) | def __iter__(self): method stage (line 80) | def stage(self, i): method append (line 84) | def append(self, f): method append_list (line 89) | def append_list(self, *args): method compose (line 94) | def compose(self, *args): method with_length (line 101) | def with_length(self, n): method with_epoch (line 112) | def with_epoch(self, nsamples=-1, nbatches=-1): method repeat (line 120) | def repeat(self, nepochs=-1, nbatches=-1): FILE: paddlespeech/audio/streamdata/shardlists.py function expand_urls (line 31) | def expand_urls(urls): class SimpleShardList (line 42) | class SimpleShardList(IterableDataset): method __init__ (line 45) | def __init__(self, urls, seed=None): method __len__ (line 56) | def __len__(self): method __iter__ (line 59) | def __iter__(self): function split_by_node (line 68) | def split_by_node(src, group=None): function single_node_only (line 80) | def single_node_only(src, group=None): function split_by_worker (line 90) | def split_by_worker(src): function resampled_ (line 101) | def resampled_(src, n=sys.maxsize): function non_empty (line 121) | def non_empty(src): class MSSource (line 133) | class MSSource: function expand (line 145) | def expand(s): class MultiShardSample (line 149) | class MultiShardSample(IterableDataset): method __init__ (line 150) | def __init__(self, fname): method parse_spec (line 155) | def parse_spec(self, fname): method set_epoch (line 203) | def set_epoch(self, seed): method get_shards_for_epoch (line 207) | def get_shards_for_epoch(self): method __iter__ (line 224) | def __iter__(self): function shardspec (line 230) | def shardspec(spec): class ResampledShards (line 237) | class ResampledShards(IterableDataset): method __init__ (line 240) | def __init__( method __iter__ (line 259) | def __iter__(self): FILE: paddlespeech/audio/streamdata/soundfile.py function resample (line 45) | def resample(y: np.ndarray, function to_mono (line 76) | def to_mono(y: np.ndarray, merge_type: str='average') -> np.ndarray: function soundfile_load_ (line 124) | def soundfile_load_(file: os.PathLike, function normalize (line 152) | def normalize(y: np.ndarray, norm_type: str='linear', function soundfile_save (line 180) | def soundfile_save(y: np.ndarray, sr: int, file: os.PathLike) -> None: function soundfile_load (line 207) | def soundfile_load( function _get_subtype_for_wav (line 263) | def _get_subtype_for_wav(dtype: paddle.dtype, function _get_subtype_for_sphere (line 308) | def _get_subtype_for_sphere(encoding: str, bits_per_sample: int): function _get_subtype (line 322) | def _get_subtype(dtype: paddle.dtype, function save (line 348) | def save( function load (line 495) | def load( function _get_bit_depth (line 624) | def _get_bit_depth(subtype): function _get_encoding (line 648) | def _get_encoding(format: str, subtype: str): function info (line 654) | def info(filepath: str, format: Optional[str]=None) -> AudioInfo: FILE: paddlespeech/audio/streamdata/tariterators.py function base_plus_ext (line 30) | def base_plus_ext(path): function valid_sample (line 45) | def valid_sample(sample): function shardlist (line 55) | def shardlist(urls, *, shuffle=False): function url_opener (line 67) | def url_opener(data, handler=reraise_exception, **kw): function tar_file_iterator (line 85) | def tar_file_iterator(fileobj, function tar_file_and_group_iterator (line 134) | def tar_file_and_group_iterator(fileobj, function tar_file_expander (line 193) | def tar_file_expander(data, handler=reraise_exception): function tar_file_and_group_expander (line 216) | def tar_file_and_group_expander(data, handler=reraise_exception): function group_by_keys (line 239) | def group_by_keys(data, function tarfile_samples (line 278) | def tarfile_samples(src, handler=reraise_exception): FILE: paddlespeech/audio/streamdata/utils.py function make_seed (line 24) | def make_seed(*args): class PipelineStage (line 31) | class PipelineStage: method invoke (line 32) | def invoke(self, *args, **kw): function identity (line 36) | def identity(x: Any) -> Any: function safe_eval (line 41) | def safe_eval(s: str, expr: str="{}"): function lookup_sym (line 48) | def lookup_sym(sym: str, modules: list): function repeatedly0 (line 58) | def repeatedly0(loader: Iterator, function guess_batchsize (line 67) | def guess_batchsize(batch: Union[tuple, list]): function repeatedly (line 72) | def repeatedly( function paddle_worker_info (line 97) | def paddle_worker_info(group=None): function paddle_worker_seed (line 131) | def paddle_worker_seed(group=None): FILE: paddlespeech/audio/streamdata/writer.py function imageencoder (line 25) | def imageencoder(image: Any, format: str="PNG"): # skipcq: PYL-W0622 function bytestr (line 63) | def bytestr(data: Any): function paddle_dumps (line 77) | def paddle_dumps(data: Any): function numpy_dumps (line 93) | def numpy_dumps(data: np.ndarray): function numpy_npz_dumps (line 107) | def numpy_npz_dumps(data: np.ndarray): function tenbin_dumps (line 119) | def tenbin_dumps(x): function cbor_dumps (line 128) | def cbor_dumps(x): function mp_dumps (line 134) | def mp_dumps(x): function add_handlers (line 140) | def add_handlers(d, keys, value): function make_handlers (line 147) | def make_handlers(): function encode_based_on_extension1 (line 174) | def encode_based_on_extension1(data: Any, tname: str, handlers: dict): function encode_based_on_extension (line 196) | def encode_based_on_extension(sample: dict, handlers: dict): function make_encoder (line 208) | def make_encoder(spec: Union[bool, str, dict, Callable]): class TarWriter (line 245) | class TarWriter: method __init__ (line 269) | def __init__( method __enter__ (line 310) | def __enter__(self): method __exit__ (line 314) | def __exit__(self, exc_type, exc_val, exc_tb): method close (line 318) | def close(self): method write (line 325) | def write(self, obj): class ShardWriter (line 367) | class ShardWriter: method __init__ (line 370) | def __init__( method next_stream (line 400) | def next_stream(self): method write (line 417) | def write(self, obj): method finish (line 430) | def finish(self): method close (line 439) | def close(self): method __enter__ (line 447) | def __enter__(self): method __exit__ (line 451) | def __exit__(self, *args, **kw): FILE: paddlespeech/audio/text/text_featurizer.py class TextFeaturizer (line 34) | class TextFeaturizer(): method __init__ (line 35) | def __init__(self, unit_type, vocab, spm_model_prefix=None, maskctc=Fa... method tokenize (line 64) | def tokenize(self, text, replace_space=True): method detokenize (line 73) | def detokenize(self, tokens): method featurize (line 82) | def featurize(self, text): method defeaturize (line 100) | def defeaturize(self, idxs): method char_tokenize (line 118) | def char_tokenize(self, text, replace_space=True): method char_detokenize (line 135) | def char_detokenize(self, tokens): method word_tokenize (line 147) | def word_tokenize(self, text): method word_detokenize (line 151) | def word_detokenize(self, tokens): method spm_tokenize (line 155) | def spm_tokenize(self, text): method spm_detokenize (line 187) | def spm_detokenize(self, tokens, input_format='piece'): method _load_vocabulary_from_file (line 207) | def _load_vocabulary_from_file(self, vocab: Union[str, list], FILE: paddlespeech/audio/text/utility.py function load_dict (line 47) | def load_dict(dict_path: Optional[Text], maskctc=False) -> Optional[List... function read_manifest (line 68) | def read_manifest( function parse_tar (line 127) | def parse_tar(file): function subfile_from_tar (line 138) | def subfile_from_tar(file, local_data=None): function rms_to_db (line 168) | def rms_to_db(rms: float): function rms_to_dbfs (line 180) | def rms_to_dbfs(rms: float): function max_dbfs (line 198) | def max_dbfs(sample_data: np.ndarray): function mean_dbfs (line 211) | def mean_dbfs(sample_data): function gain_db_to_ratio (line 224) | def gain_db_to_ratio(gain_db: float): function normalize_audio (line 236) | def normalize_audio(sample_data: np.ndarray, dbfs: float=-3.0103): function _load_json_cmvn (line 251) | def _load_json_cmvn(json_cmvn_file): function _load_kaldi_cmvn (line 276) | def _load_kaldi_cmvn(kaldi_cmvn_file): function load_cmvn (line 318) | def load_cmvn(cmvn_file: str, filetype: str): function convert_samples_to_float32 (line 349) | def convert_samples_to_float32(samples): function convert_samples_from_float32 (line 368) | def convert_samples_from_float32(samples, dtype): FILE: paddlespeech/audio/transform/add_deltas.py function delta (line 18) | def delta(feat, window): function add_deltas (line 30) | def add_deltas(x, window=2, order=2): class AddDeltas (line 44) | class AddDeltas(): method __init__ (line 45) | def __init__(self, window=2, order=2): method __repr__ (line 49) | def __repr__(self): method __call__ (line 53) | def __call__(self, x): FILE: paddlespeech/audio/transform/channel_selector.py class ChannelSelector (line 18) | class ChannelSelector(): method __init__ (line 21) | def __init__(self, train_channel="random", eval_channel=0, axis=1): method __repr__ (line 26) | def __repr__(self): method __call__ (line 34) | def __call__(self, x, train=True): FILE: paddlespeech/audio/transform/cmvn.py class CMVN (line 23) | class CMVN(): method __init__ (line 26) | def __init__( method __repr__ (line 100) | def __repr__(self): method __call__ (line 110) | def __call__(self, x, uttid=None): class UtteranceCMVN (line 133) | class UtteranceCMVN(): method __init__ (line 136) | def __init__(self, norm_means=True, norm_vars=False, std_floor=1.0e-20): method __repr__ (line 141) | def __repr__(self): method __call__ (line 147) | def __call__(self, x, uttid=None): class GlobalCMVN (line 163) | class GlobalCMVN(): method __init__ (line 166) | def __init__(self, method __repr__ (line 188) | def __repr__(self): method __call__ (line 194) | def __call__(self, x, uttid=None): FILE: paddlespeech/audio/transform/functional.py class FuncTrans (line 21) | class FuncTrans(TransformInterface): method __init__ (line 46) | def __init__(self, **kwargs): method __call__ (line 50) | def __call__(self, x): method add_arguments (line 54) | def add_arguments(cls, parser): method func (line 64) | def func(self): method default_params (line 68) | def default_params(cls): method __repr__ (line 78) | def __repr__(self): FILE: paddlespeech/audio/transform/perturb.py class SoundHDF5File (line 27) | class SoundHDF5File(): method __init__ (line 43) | def __init__(self, method __repr__ (line 65) | def __repr__(self): method create_dataset (line 69) | def create_dataset(self, name, shape=None, data=None, **kwds): method __setitem__ (line 76) | def __setitem__(self, name, data): method __getitem__ (line 79) | def __getitem__(self, key): method keys (line 85) | def keys(self): method values (line 88) | def values(self): method items (line 92) | def items(self): method __iter__ (line 96) | def __iter__(self): method __contains__ (line 99) | def __contains__(self, item): method __len__ (line 102) | def __len__(self): method __enter__ (line 105) | def __enter__(self): method __exit__ (line 108) | def __exit__(self, exc_type, exc_val, exc_tb): method close (line 111) | def close(self): class SpeedPerturbation (line 115) | class SpeedPerturbation(): method __init__ (line 131) | def __init__( method __repr__ (line 162) | def __repr__(self): method __call__ (line 174) | def __call__(self, x, uttid=None, train=True): class SpeedPerturbationSox (line 203) | class SpeedPerturbationSox(): method __init__ (line 229) | def __init__( method __repr__ (line 276) | def __repr__(self): method __call__ (line 289) | def __call__(self, x, uttid=None, train=True): class BandpassPerturbation (line 323) | class BandpassPerturbation(): method __init__ (line 337) | def __init__(self, lower=0.0, upper=0.75, seed=None, axes=(-1, )): method __repr__ (line 344) | def __repr__(self): method __call__ (line 348) | def __call__(self, x_stft, uttid=None, train=True): class VolumePerturbation (line 365) | class VolumePerturbation(): method __init__ (line 366) | def __init__(self, method __repr__ (line 394) | def __repr__(self): method __call__ (line 402) | def __call__(self, x, uttid=None, train=True): class NoiseInjection (line 417) | class NoiseInjection(): method __init__ (line 420) | def __init__( method __repr__ (line 471) | def __repr__(self): method __call__ (line 479) | def __call__(self, x, uttid=None, train=True): class RIRConvolve (line 523) | class RIRConvolve(): method __init__ (line 524) | def __init__(self, utt2rir, filetype="list"): method __repr__ (line 541) | def __repr__(self): method __call__ (line 544) | def __call__(self, x, uttid=None, train=True): FILE: paddlespeech/audio/transform/spec_augment.py function time_warp (line 24) | def time_warp(x, max_time_warp=80, inplace=False, mode="PIL"): class TimeWarp (line 69) | class TimeWarp(FuncTrans): method __call__ (line 73) | def __call__(self, x, train): function freq_mask (line 79) | def freq_mask(x, F=30, n_mask=2, replace_with_zero=True, inplace=False): class FreqMask (line 110) | class FreqMask(FuncTrans): method __call__ (line 114) | def __call__(self, x, train): function time_mask (line 120) | def time_mask(spec, T=40, n_mask=2, replace_with_zero=True, inplace=False): class TimeMask (line 152) | class TimeMask(FuncTrans): method __call__ (line 156) | def __call__(self, x, train): function spec_augment (line 162) | def spec_augment( class SpecAugment (line 207) | class SpecAugment(FuncTrans): method __call__ (line 211) | def __call__(self, x, train): FILE: paddlespeech/audio/transform/spectrogram.py function stft (line 23) | def stft(x, function istft (line 60) | def istft(x, n_shift, win_length=None, window="hann", center=True): function stft2logmelspectrogram (line 87) | def stft2logmelspectrogram(x_stft, function spectrogram (line 109) | def spectrogram(x, n_fft, n_shift, win_length=None, window="hann"): function logmelspectrogram (line 115) | def logmelspectrogram( class Spectrogram (line 146) | class Spectrogram(): method __init__ (line 147) | def __init__(self, n_fft, n_shift, win_length=None, window="hann"): method __repr__ (line 153) | def __repr__(self): method __call__ (line 162) | def __call__(self, x): class LogMelSpectrogram (line 171) | class LogMelSpectrogram(): method __init__ (line 172) | def __init__( method __repr__ (line 193) | def __repr__(self): method __call__ (line 208) | def __call__(self, x): class Stft2LogMelSpectrogram (line 219) | class Stft2LogMelSpectrogram(): method __init__ (line 220) | def __init__(self, fs, n_mels, n_fft, fmin=None, fmax=None, eps=1e-10): method __repr__ (line 228) | def __repr__(self): method __call__ (line 239) | def __call__(self, x): class Stft (line 249) | class Stft(): method __init__ (line 250) | def __init__( method __repr__ (line 265) | def __repr__(self): method __call__ (line 277) | def __call__(self, x): class IStft (line 288) | class IStft(): method __init__ (line 289) | def __init__(self, n_shift, win_length=None, window="hann", center=True): method __repr__ (line 295) | def __repr__(self): method __call__ (line 305) | def __call__(self, x): class LogMelSpectrogramKaldi (line 314) | class LogMelSpectrogramKaldi(): method __init__ (line 315) | def __init__( method __repr__ (line 345) | def __repr__(self): method __call__ (line 357) | def __call__(self, x, train): class WavProcess (line 385) | class WavProcess(): method __init__ (line 386) | def __init__(self): method __call__ (line 394) | def __call__(self, x): class LogMelSpectrogramKaldi_decay (line 413) | class LogMelSpectrogramKaldi_decay(): method __init__ (line 414) | def __init__( method __repr__ (line 449) | def __repr__(self): method __call__ (line 467) | def __call__(self, x, train): FILE: paddlespeech/audio/transform/transform_interface.py class TransformInterface (line 17) | class TransformInterface: method __call__ (line 20) | def __call__(self, x): method add_arguments (line 24) | def add_arguments(cls, parser): method __repr__ (line 27) | def __repr__(self): class Identity (line 31) | class Identity(TransformInterface): method __call__ (line 34) | def __call__(self, x): FILE: paddlespeech/audio/transform/transformation.py class Transformation (line 54) | class Transformation(): method __init__ (line 72) | def __init__(self, conffile=None): method __repr__ (line 107) | def __repr__(self): method __call__ (line 112) | def __call__(self, xs, uttid_list=None, **kwargs): FILE: paddlespeech/audio/transform/wpe.py class WPE (line 18) | class WPE(object): method __init__ (line 19) | def __init__(self, method __repr__ (line 31) | def __repr__(self): method __call__ (line 42) | def __call__(self, xs): FILE: paddlespeech/audio/utils/check_kwargs.py function check_kwargs (line 18) | def check_kwargs(func, kwargs, name=None): FILE: paddlespeech/audio/utils/download.py function decompress (line 32) | def decompress(file: str): function download_and_decompress (line 40) | def download_and_decompress(archives: List[Dict[str, str]], function load_state_dict_from_url (line 56) | def load_state_dict_from_url(url: str, path: str, md5: str=None): FILE: paddlespeech/audio/utils/dynamic_import.py function dynamic_import (line 20) | def dynamic_import(import_path, alias=dict()): FILE: paddlespeech/audio/utils/error.py class ParameterError (line 18) | class ParameterError(Exception): FILE: paddlespeech/audio/utils/log.py class Logger (line 59) | class Logger(object): method __init__ (line 66) | def __init__(self, name: str=None): method disable (line 91) | def disable(self): method enable (line 94) | def enable(self): method is_enable (line 98) | def is_enable(self) -> bool: method __call__ (line 101) | def __call__(self, log_level: str, msg: str): method use_terminator (line 108) | def use_terminator(self, terminator: str): method processing (line 115) | def processing(self, msg: str, interval: float=0.1): FILE: paddlespeech/audio/utils/numeric.py function pcm16to32 (line 21) | def pcm16to32(audio: np.ndarray) -> np.ndarray: function _safe_cast (line 37) | def _safe_cast(y: np.ndarray, dtype: Union[type, str]) -> np.ndarray: function depth_convert (line 55) | def depth_convert(y: np.ndarray, dtype: Union[type, str]) -> np.ndarray: FILE: paddlespeech/audio/utils/tensor_utils.py function has_tensor (line 27) | def has_tensor(val): function pad_sequence (line 40) | def pad_sequence(sequences: List[paddle.Tensor], function add_sos_eos (line 115) | def add_sos_eos(ys_pad: paddle.Tensor, sos: int, eos: int, function th_accuracy (line 169) | def th_accuracy(pad_outputs: paddle.Tensor, function reverse_pad_list (line 196) | def reverse_pad_list(ys_pad: paddle.Tensor, function st_reverse_pad_list (line 219) | def st_reverse_pad_list(ys_pad: paddle.Tensor, FILE: paddlespeech/audio/utils/time.py class Timer (line 23) | class Timer(object): method __init__ (line 26) | def __init__(self, total_step: int): method start (line 32) | def start(self): method stop (line 36) | def stop(self): method count (line 40) | def count(self) -> int: method timing (line 46) | def timing(self) -> float: method is_running (line 54) | def is_running(self) -> bool: method eta (line 58) | def eta(self) -> str: function seconds_to_hms (line 66) | def seconds_to_hms(seconds: int) -> str: FILE: paddlespeech/audiotools/core/_julius.py function simple_repr (line 31) | def simple_repr(obj, attrs: Optional[Sequence[str]]=None, overrides: dic... function sinc (line 60) | def sinc(x: paddle.Tensor): class ResampleFrac (line 72) | class ResampleFrac(paddle.nn.Layer): method __init__ (line 77) | def __init__(self, method _init_kernels (line 119) | def _init_kernels(self): method forward (line 147) | def forward( method __repr__ (line 201) | def __repr__(self): function resample_frac (line 205) | def resample_frac( function pad_to (line 224) | def pad_to(tensor: paddle.Tensor, function pure_tone (line 238) | def pure_tone(freq: float, sr: float=128, dur: float=4, device=None): class LowPassFilters (line 251) | class LowPassFilters(nn.Layer): method __init__ (line 256) | def __init__(self, method forward (line 302) | def forward(self, _input): class LowPassFilter (line 321) | class LowPassFilter(nn.Layer): method __init__ (line 326) | def __init__(self, method cutoff (line 336) | def cutoff(self): method stride (line 340) | def stride(self): method pad (line 344) | def pad(self): method zeros (line 348) | def zeros(self): method fft (line 352) | def fft(self): method forward (line 355) | def forward(self, _input): function lowpass_filters (line 359) | def lowpass_filters( function lowpass_filter (line 372) | def lowpass_filter(_input: paddle.Tensor, class HighPassFilters (line 385) | class HighPassFilters(paddle.nn.Layer): method __init__ (line 428) | def __init__(self, method cutoffs (line 438) | def cutoffs(self): method stride (line 442) | def stride(self): method pad (line 446) | def pad(self): method zeros (line 450) | def zeros(self): method fft (line 454) | def fft(self): method forward (line 457) | def forward(self, _input): class HighPassFilter (line 472) | class HighPassFilter(paddle.nn.Layer): method __init__ (line 487) | def __init__(self, method cutoff (line 497) | def cutoff(self): method stride (line 501) | def stride(self): method pad (line 505) | def pad(self): method zeros (line 509) | def zeros(self): method fft (line 513) | def fft(self): method forward (line 516) | def forward(self, _input): function highpass_filters (line 520) | def highpass_filters( function highpass_filter (line 533) | def highpass_filter(_input: paddle.Tensor, class SplitBands (line 546) | class SplitBands(paddle.nn.Layer): method __init__ (line 582) | def __init__( method forward (line 623) | def forward(self, input): method cutoffs (line 639) | def cutoffs(self): function split_bands (line 648) | def split_bands( FILE: paddlespeech/audiotools/core/audio_signal.py function create_dct (line 34) | def create_dct(n_mfcc: int, n_mels: int, norm: Optional[str]) -> paddle.... class AudioSignal (line 95) | class AudioSignal( method __init__ (line 161) | def __init__( method path_to_input_file (line 207) | def path_to_input_file( method excerpt (line 216) | def excerpt( method salient_excerpt (line 263) | def salient_excerpt( method zeros (line 323) | def zeros( method wave (line 361) | def wave( method batch (line 414) | def batch( method load_from_file (line 504) | def load_from_file( method load_from_array (line 554) | def load_from_array( method write (line 594) | def write(self, audio_path: typing.Union[str, Path]): method deepcopy (line 636) | def deepcopy(self): method copy (line 646) | def copy(self): method clone (line 656) | def clone(self): method detach (line 682) | def detach(self): method hash (line 701) | def hash(self): method to_mono (line 732) | def to_mono(self): method resample (line 744) | def resample(self, sample_rate: int): method to (line 766) | def to(self, device: str): method float (line 788) | def float(self): method cpu (line 798) | def cpu(self): method cuda (line 807) | def cuda(self): method numpy (line 816) | def numpy(self): method zero_pad (line 826) | def zero_pad(self, before: int, after: int): method zero_pad_to (line 845) | def zero_pad_to(self, length: int, mode: str="after"): method trim (line 867) | def trim(self, before: int, after: int): method truncate_samples (line 888) | def truncate_samples(self, length_in_samples: int): method device (line 905) | def device(self): method audio_data (line 921) | def audio_data(self): method audio_data (line 942) | def audio_data(self, data: typing.Union[paddle.Tensor, np.ndarray]): method stft_data (line 955) | def stft_data(self): method stft_data (line 967) | def stft_data(self, data: typing.Union[paddle.Tensor, np.ndarray]): method batch_size (line 976) | def batch_size(self): method signal_length (line 987) | def signal_length(self): method shape (line 1001) | def shape(self): method signal_duration (line 1012) | def signal_duration(self): method num_channels (line 1026) | def num_channels(self): method get_window (line 1039) | def get_window(window_type: str, window_length: int, device: str=None): method stft_params (line 1070) | def stft_params(self): method stft_params (line 1093) | def stft_params(self, value: STFTParams): method compute_stft_padding (line 1117) | def compute_stft_padding(self, method stft (line 1150) | def stft( method istft (line 1230) | def istft( method get_mel_filters (line 1307) | def get_mel_filters(sr: int, method mel_spectrogram (line 1341) | def mel_spectrogram( method get_dct (line 1403) | def get_dct(n_mfcc: int, n_mels: int, norm: str="ortho", device: str=N... method mfcc (line 1427) | def mfcc( method magnitude (line 1464) | def magnitude(self): method magnitude (line 1488) | def magnitude(self, value): method log_magnitude (line 1492) | def log_magnitude(self, method phase (line 1528) | def phase(self): method phase (line 1552) | def phase(self, value): method __add__ (line 1558) | def __add__(self, other): method __iadd__ (line 1563) | def __iadd__(self, other): method __radd__ (line 1567) | def __radd__(self, other): method __sub__ (line 1570) | def __sub__(self, other): method __isub__ (line 1575) | def __isub__(self, other): method __mul__ (line 1579) | def __mul__(self, other): method __imul__ (line 1584) | def __imul__(self, other): method __rmul__ (line 1588) | def __rmul__(self, other): method _info (line 1592) | def _info(self): method markdown (line 1616) | def markdown(self): method __str__ (line 1647) | def __str__(self): method __rich__ (line 1655) | def __rich__(self): method __eq__ (line 1669) | def __eq__(self, other): method __getitem__ (line 1689) | def __getitem__(self, key): method __setitem__ (line 1720) | def __setitem__(self, key, value): method __ne__ (line 1749) | def __ne__(self, other): FILE: paddlespeech/audiotools/core/display.py function format_figure (line 12) | def format_figure(func): class DisplayMixin (line 37) | class DisplayMixin: method specshow (line 39) | def specshow( method waveplot (line 89) | def waveplot(self, x_axis: str="time", **kwargs): method wavespec (line 111) | def wavespec(self, x_axis: str="time", **kwargs): method write_audio_to_tb (line 130) | def write_audio_to_tb( method save_image (line 169) | def save_image( FILE: paddlespeech/audiotools/core/dsp.py function _unfold (line 14) | def _unfold(x, kernel_sizes, strides): function _fold (line 33) | def _fold(x, output_sizes, kernel_sizes, strides): class DSPMixin (line 53) | class DSPMixin: method _preprocess_signal_for_windowing (line 58) | def _preprocess_signal_for_windowing(self, window_duration, hop_durati... method windows (line 74) | def windows(self, method collect_windows (line 113) | def collect_windows(self, method overlap_and_add (line 157) | def overlap_and_add(self, hop_duration: float): method low_pass (line 211) | def low_pass(self, method high_pass (line 243) | def high_pass(self, method mask_frequencies (line 275) | def mask_frequencies( method mask_timesteps (line 327) | def mask_timesteps( method mask_low_magnitudes (line 376) | def mask_low_magnitudes( method shift_phase (line 408) | def shift_phase(self, method corrupt_phase (line 428) | def corrupt_phase(self, method preemphasis (line 448) | def preemphasis(self, coef: float=0.85): FILE: paddlespeech/audiotools/core/effects.py class EffectMixin (line 14) | class EffectMixin: method mix (line 44) | def mix( method convolve (line 82) | def convolve(self, other, start_at_max: bool=True): method apply_ir (line 142) | def apply_ir( method ensure_max_of_audio (line 197) | def ensure_max_of_audio(self, _max: float=1.0): method normalize (line 217) | def normalize(self, method volume_change (line 240) | def volume_change(self, db: typing.Union[paddle.Tensor, np.ndarray, fl... method mel_filterbank (line 258) | def mel_filterbank(self, n_bands: int): method equalizer (line 275) | def equalizer(self, db: typing.Union[paddle.Tensor, np.ndarray]): method clip_distortion (line 305) | def clip_distortion( method quantization (line 336) | def quantization(self, method mulaw_quantization (line 367) | def mulaw_quantization(self, method __matmul__ (line 401) | def __matmul__(self, other): class ImpulseResponseMixin (line 405) | class ImpulseResponseMixin: method decompose_ir (line 416) | def decompose_ir(self): method measure_drr (line 470) | def measure_drr(self): method solve_alpha (line 486) | def solve_alpha(early_response, late_field, wd, target_drr): method alter_drr (line 510) | def alter_drr(self, drr: typing.Union[paddle.Tensor, np.ndarray, float]): FILE: paddlespeech/audiotools/core/ffmpeg.py function r128stats (line 17) | def r128stats(filepath: str, quiet: bool): function ffprobe_offset_and_codec (line 70) | def ffprobe_offset_and_codec(path: str) -> Tuple[float, str]: class FFMPEGMixin (line 92) | class FFMPEGMixin: method ffmpeg_loudness (line 95) | def ffmpeg_loudness(self, quiet: bool=True): FILE: paddlespeech/audiotools/core/loudness.py function _unfold1d (line 17) | def _unfold1d(x, kernel_size, stride): class Meter (line 59) | class Meter(paddle.nn.Layer): method __init__ (line 82) | def __init__( method apply_filter_gpu (line 120) | def apply_filter_gpu(self, data: paddle.Tensor): method scipy_lfilter (line 154) | def scipy_lfilter(waveform, a_coeffs, b_coeffs, clamp: bool=True): method apply_filter_cpu (line 163) | def apply_filter_cpu(self, data: paddle.Tensor): method apply_filter (line 188) | def apply_filter(self, data: paddle.Tensor): method forward (line 210) | def forward(self, data: paddle.Tensor): method _unfold (line 225) | def _unfold(self, input_data): method integrated_loudness (line 238) | def integrated_loudness(self, data: paddle.Tensor): method filter_class (line 315) | def filter_class(self): method filter_class (line 319) | def filter_class(self, value): class LoudnessMixin (line 328) | class LoudnessMixin: method loudness (line 333) | def loudness(self, FILE: paddlespeech/audiotools/core/util.py function exp_compat (line 61) | def exp_compat(x): function bool_index_compat (line 87) | def bool_index_compat(x, mask): function bool_setitem_compat (line 114) | def bool_setitem_compat(x, mask, y): class Info (line 146) | class Info: method duration (line 152) | def duration(self) -> float: function info_ffmpeg (line 156) | def info_ffmpeg(audio_path: str): function info (line 180) | def info(audio_path: str): function ensure_tensor (line 197) | def ensure_tensor( function _get_value (line 232) | def _get_value(other): function random_state (line 240) | def random_state(seed: typing.Union[int, np.random.RandomState]): function _close_temp_files (line 274) | def _close_temp_files(tmpfiles: list): function find_audio (line 307) | def find_audio(folder: str, ext: List[str]=AUDIO_EXTENSIONS): function read_sources (line 336) | def read_sources( function choose_from_list_of_lists (line 383) | def choose_from_list_of_lists(state: np.random.RandomState, function chdir (line 408) | def chdir(newdir: typing.Union[Path, str]): function move_to_device (line 427) | def move_to_device(data, device): function prepare_batch (line 439) | def prepare_batch(batch: typing.Union[dict, list, paddle.Tensor], function sample_from_dist (line 480) | def sample_from_dist(dist_tuple: tuple, state: np.random.RandomState=None): function format_figure (line 527) | def format_figure( function collate_tensor_fn (line 636) | def collate_tensor_fn( function collate_float_fn (line 645) | def collate_float_fn( function collate_int_fn (line 653) | def collate_int_fn( function collate_str_fn (line 661) | def collate_str_fn( function default_collate (line 678) | def default_collate(batch, function collate (line 759) | def collate(list_of_dicts: list, n_splits: int=None): function hz_to_bin (line 816) | def hz_to_bin(hz: paddle.Tensor, n_fft: int, sample_rate: int): function generate_chord_dataset (line 845) | def generate_chord_dataset( FILE: paddlespeech/audiotools/data/datasets.py class AudioLoader (line 25) | class AudioLoader: method __init__ (line 54) | def __init__( method __call__ (line 77) | def __call__( function default_matcher (line 140) | def default_matcher(x, y): function align_lists (line 144) | def align_lists(lists, matcher: Callable=default_matcher): class AudioDataset (line 155) | class AudioDataset: method __init__ (line 360) | def __init__( method __getitem__ (line 401) | def __getitem__(self, idx): method __len__ (line 453) | def __len__(self): method collate (line 457) | def collate(list_of_dicts: Union[list, dict], n_splits: int=None): class ConcatDataset (line 477) | class ConcatDataset(AudioDataset): method __init__ (line 479) | def __init__(self, datasets: list): method __len__ (line 482) | def __len__(self): method __getitem__ (line 485) | def __getitem__(self, idx): class ResumableDistributedSampler (line 490) | class ResumableDistributedSampler(DistributedBatchSampler): method __init__ (line 493) | def __init__(self, method __iter__ (line 517) | def __iter__(self): class ResumableSequentialSampler (line 536) | class ResumableSequentialSampler(SequenceSampler): method __init__ (line 539) | def __init__(self, dataset, start_idx: int=None, **kwargs): method __iter__ (line 544) | def __iter__(self): FILE: paddlespeech/audiotools/data/preprocess.py function create_csv (line 14) | def create_csv(audio_files: list, FILE: paddlespeech/audiotools/data/transforms.py class BaseTransform (line 45) | class BaseTransform: method __init__ (line 106) | def __init__(self, keys: list=[], name: str=None, prob: float=1.0): method _prepare (line 124) | def _prepare(self, batch: dict): method _transform (line 132) | def _transform(self, signal): method _instantiate (line 135) | def _instantiate(self, state: RandomState, signal: AudioSignal=None): method apply_mask (line 139) | def apply_mask(batch: dict, mask: paddle.Tensor): method transform (line 173) | def transform(self, signal: AudioSignal, **kwargs): method __call__ (line 208) | def __call__(self, *args, **kwargs): method instantiate (line 211) | def instantiate( method batch_instantiate (line 268) | def batch_instantiate( class Identity (line 307) | class Identity(BaseTransform): class SpectralTransform (line 313) | class SpectralTransform(BaseTransform): method transform (line 321) | def transform(self, signal, **kwargs): class Compose (line 328) | class Compose(BaseTransform): method __init__ (line 385) | def __init__(self, *transforms: list, name: str=None, prob: float=1.0): method filter (line 399) | def filter(self, *names: list): method _transform (line 443) | def _transform(self, signal, **kwargs): method _instantiate (line 449) | def _instantiate(self, state: RandomState, signal: AudioSignal=None): method __getitem__ (line 455) | def __getitem__(self, idx): method __len__ (line 458) | def __len__(self): method __iter__ (line 461) | def __iter__(self): class Choose (line 466) | class Choose(Compose): method __init__ (line 489) | def __init__( method _instantiate (line 502) | def _instantiate(self, state: RandomState, signal: AudioSignal=None): class Repeat (line 516) | class Repeat(Compose): method __init__ (line 527) | def __init__( class RepeatUpTo (line 539) | class RepeatUpTo(Choose): method __init__ (line 552) | def __init__( class ClippingDistortion (line 567) | class ClippingDistortion(BaseTransform): method __init__ (line 583) | def __init__( method _instantiate (line 592) | def _instantiate(self, state: RandomState): method _transform (line 595) | def _transform(self, signal, perc): class Equalizer (line 599) | class Equalizer(BaseTransform): method __init__ (line 617) | def __init__( method _instantiate (line 628) | def _instantiate(self, state: RandomState): method _transform (line 633) | def _transform(self, signal, eq): class BackgroundNoise (line 637) | class BackgroundNoise(BaseTransform): method __init__ (line 685) | def __init__( method _instantiate (line 703) | def _instantiate(self, state: RandomState, signal: AudioSignal): method _transform (line 717) | def _transform(self, signal, bg_signal, snr, eq): class RoomImpulseResponse (line 723) | class RoomImpulseResponse(BaseTransform): method __init__ (line 758) | def __init__( method _instantiate (line 781) | def _instantiate(self, state: RandomState, signal: AudioSignal=None): method _transform (line 797) | def _transform(self, signal, ir_signal, drr, eq): class VolumeNorm (line 807) | class VolumeNorm(BaseTransform): method __init__ (line 823) | def __init__( method _instantiate (line 832) | def _instantiate(self, state: RandomState): method _transform (line 835) | def _transform(self, signal, db): class GlobalVolumeNorm (line 839) | class GlobalVolumeNorm(BaseTransform): method __init__ (line 874) | def __init__( method _instantiate (line 883) | def _instantiate(self, state: RandomState, signal: AudioSignal): method _transform (line 894) | def _transform(self, signal, db): class Silence (line 898) | class Silence(BaseTransform): method __init__ (line 910) | def __init__(self, name: str=None, prob: float=0.1): method _transform (line 913) | def _transform(self, signal): class LowPass (line 926) | class LowPass(BaseTransform): method __init__ (line 946) | def __init__( method _instantiate (line 957) | def _instantiate(self, state: RandomState): method _transform (line 960) | def _transform(self, signal, cutoff): class HighPass (line 964) | class HighPass(BaseTransform): method __init__ (line 984) | def __init__( method _instantiate (line 995) | def _instantiate(self, state: RandomState): method _transform (line 998) | def _transform(self, signal, cutoff): class FrequencyMask (line 1002) | class FrequencyMask(SpectralTransform): method __init__ (line 1021) | def __init__( method _instantiate (line 1031) | def _instantiate(self, state: RandomState, signal: AudioSignal): method _transform (line 1043) | def _transform(self, signal, fmin_hz: float, fmax_hz: float): class TimeMask (line 1047) | class TimeMask(SpectralTransform): method __init__ (line 1066) | def __init__( method _instantiate (line 1076) | def _instantiate(self, state: RandomState, signal: AudioSignal): method _transform (line 1087) | def _transform(self, signal, tmin_s: float, tmax_s: float): class Smoothing (line 1091) | class Smoothing(BaseTransform): method __init__ (line 1110) | def __init__( method _instantiate (line 1120) | def _instantiate(self, state: RandomState, signal: AudioSignal=None): method _transform (line 1127) | def _transform(self, signal, window): class FrequencyNoise (line 1140) | class FrequencyNoise(FrequencyMask): method __init__ (line 1157) | def __init__( method _transform (line 1166) | def _transform(self, signal, fmin_hz: float, fmax_hz: float): FILE: paddlespeech/audiotools/metrics/quality.py function visqol (line 13) | def visqol( FILE: paddlespeech/audiotools/ml/accelerator.py class ResumableDistributedSampler (line 15) | class ResumableDistributedSampler(DistributedBatchSampler): method __init__ (line 18) | def __init__(self, dataset, start_idx: int=None, **kwargs): method __iter__ (line 23) | def __iter__(self): class ResumableSequentialSampler (line 30) | class ResumableSequentialSampler(SequenceSampler): method __init__ (line 33) | def __init__(self, dataset, start_idx: int=None, **kwargs): method __iter__ (line 38) | def __iter__(self): class Accelerator (line 45) | class Accelerator: method __init__ (line 66) | def __init__(self, amp: bool=False): method __enter__ (line 99) | def __enter__(self): method __exit__ (line 102) | def __exit__(self, exc_type, exc_value, traceback): method prepare_model (line 105) | def prepare_model(self, model: paddle.nn.Layer, **kwargs): method autocast (line 126) | def autocast(self, *args, **kwargs): method backward (line 129) | def backward(self, loss: paddle.Tensor): method step (line 140) | def step(self, optimizer: paddle.optimizer.Optimizer): method update (line 150) | def update(self): method prepare_dataloader (line 154) | def prepare_dataloader(self, method unwrap (line 198) | def unwrap(model): FILE: paddlespeech/audiotools/ml/basemodel.py class BaseModel (line 15) | class BaseModel(nn.Layer): method save (line 53) | def save( method device (line 119) | def device(self): method load (line 127) | def load( method save_to_folder (line 171) | def save_to_folder( method load_from_folder (line 221) | def load_from_folder( FILE: paddlespeech/audiotools/ml/decorators.py function default_list (line 31) | def default_list(): class Mean (line 35) | class Mean: method __init__ (line 40) | def __init__(self): method __call__ (line 43) | def __call__(self): method reset (line 47) | def reset(self): method update (line 51) | def update(self, val): function when (line 57) | def when(condition): function timer (line 95) | def timer(prefix: str="time"): class Tracker (line 122) | class Tracker: method __init__ (line 167) | def __init__( method print (line 212) | def print(self, msg): method update (line 225) | def update(self, label, fn_name): method done (line 265) | def done(self, label: str, title: str): method track (line 286) | def track( method log (line 359) | def log(self, label: str, value_type: str="value", history: bool=True): method is_best (line 401) | def is_best(self, label, key): method state_dict (line 419) | def state_dict(self): method load_state_dict (line 430) | def load_state_dict(self, state_dict): FILE: paddlespeech/audiotools/post.py function audio_table (line 12) | def audio_table( FILE: paddlespeech/cli/asr/infer.py class ASRExecutor (line 45) | class ASRExecutor(BaseExecutor): method __init__ (line 46) | def __init__(self): method _init_from_path (line 132) | def _init_from_path(self, method preprocess (line 235) | def preprocess(self, model_type: str, input: Union[str, os.PathLike]): method infer (line 290) | def infer(self, model_type: str): method postprocess (line 331) | def postprocess(self) -> Union[str, os.PathLike]: method download_lm (line 337) | def download_lm(self, url, lm_dir, md5sum): method _pcm16to32 (line 344) | def _pcm16to32(self, audio): method _pcm32to16 (line 351) | def _pcm32to16(self, audio): method _check (line 358) | def _check(self, audio_file: str, sample_rate: int, force_yes: bool=Fa... method execute (line 429) | def execute(self, argv: List[str]) -> bool: method __call__ (line 484) | def __call__(self, FILE: paddlespeech/cli/base_commands.py class BaseCommand (line 30) | class BaseCommand: method execute (line 31) | def execute(self, argv: List[str]) -> bool: class HelpCommand (line 37) | class HelpCommand: method execute (line 38) | def execute(self, argv: List[str]) -> bool: class VersionCommand (line 58) | class VersionCommand: method execute (line 59) | def execute(self, argv: List[str]) -> bool: class StatsCommand (line 96) | class StatsCommand: method __init__ (line 97) | def __init__(self): method show_support_models (line 111) | def show_support_models(self, pretrained_models: dict): method execute (line 135) | def execute(self, argv: List[str]) -> bool: FILE: paddlespeech/cli/cls/infer.py class CLSExecutor (line 34) | class CLSExecutor(BaseExecutor): method __init__ (line 35) | def __init__(self): method _init_from_path (line 86) | def _init_from_path(self, method preprocess (line 132) | def preprocess(self, audio_file: Union[str, os.PathLike]): method infer (line 170) | def infer(self): method _generate_topk_label (line 176) | def _generate_topk_label(self, result: np.ndarray, topk: int) -> str: method postprocess (line 187) | def postprocess(self, topk: int) -> Union[str, os.PathLike]: method execute (line 194) | def execute(self, argv: List[str]) -> bool: method __call__ (line 232) | def __call__(self, FILE: paddlespeech/cli/download.py function _is_url (line 37) | def _is_url(path): function _map_path (line 46) | def _map_path(url, root_dir): function _get_unique_endpoints (line 53) | def _get_unique_endpoints(trainer_endpoints): function get_path_from_url (line 68) | def get_path_from_url(url, function _get_download (line 115) | def _get_download(url, fullname): function _wget_download (line 149) | def _wget_download(url, fullname): function _download (line 175) | def _download(url, path, md5sum=None, method='get'): function _md5check (line 208) | def _md5check(fullname, md5sum=None): function _decompress (line 226) | def _decompress(fname): function _uncompress_file_zip (line 247) | def _uncompress_file_zip(filepath): function _uncompress_file_tar (line 280) | def _uncompress_file_tar(filepath, mode="r:*"): function _is_a_single_file (line 310) | def _is_a_single_file(file_list): function _is_a_single_dir (line 316) | def _is_a_single_dir(file_list): FILE: paddlespeech/cli/entry.py function _CommandDict (line 20) | def _CommandDict(): function _execute (line 24) | def _execute(): FILE: paddlespeech/cli/executor.py class BaseExecutor (line 31) | class BaseExecutor(ABC): method __init__ (line 36) | def __init__(self, task: str, **kwargs): method _init_from_path (line 42) | def _init_from_path(self, *args, **kwargs): method preprocess (line 49) | def preprocess(self, input: Any, *args, **kwargs): method infer (line 61) | def infer(self, *args, **kwargs): method postprocess (line 69) | def postprocess(self, *args, **kwargs) -> Union[str, os.PathLike]: method execute (line 80) | def execute(self, argv: List[str]) -> bool: method __call__ (line 93) | def __call__(self, *arg, **kwargs): method get_input_source (line 99) | def get_input_source(self, input_: Union[str, os.PathLike, None] method process_task_results (line 132) | def process_task_results(self, method _is_job_input (line 163) | def _is_job_input(self, input_: Union[str, os.PathLike]) -> bool: method _get_job_contents (line 177) | def _get_job_contents( method _format_task_results (line 198) | def _format_task_results( method disable_task_loggers (line 214) | def disable_task_loggers(self): method show_rtf (line 224) | def show_rtf(self, info: Dict[str, List[float]]): FILE: paddlespeech/cli/kws/infer.py class KWSExecutor (line 33) | class KWSExecutor(BaseExecutor): method __init__ (line 34) | def __init__(self): method _init_from_path (line 83) | def _init_from_path(self, method preprocess (line 136) | def preprocess(self, audio_file: Union[str, os.PathLike]): method infer (line 151) | def infer(self): method postprocess (line 157) | def postprocess(self, threshold: float) -> Union[str, os.PathLike]: method execute (line 165) | def execute(self, argv: List[str]) -> bool: method __call__ (line 202) | def __call__(self, FILE: paddlespeech/cli/log.py class Logger (line 22) | class Logger(object): method __init__ (line 23) | def __init__(self, name: str=None): method __call__ (line 55) | def __call__(self, log_level: str, msg: str): FILE: paddlespeech/cli/ssl/infer.py class SSLExecutor (line 44) | class SSLExecutor(BaseExecutor): method __init__ (line 45) | def __init__(self): method _init_from_path (line 124) | def _init_from_path(self, method preprocess (line 218) | def preprocess(self, input: Union[str, os.PathLike]): method infer (line 267) | def infer(self, model_type: str, task: str): method postprocess (line 296) | def postprocess(self) -> Union[str, os.PathLike]: method _pcm16to32 (line 302) | def _pcm16to32(self, audio): method _pcm32to16 (line 309) | def _pcm32to16(self, audio): method _check (line 316) | def _check(self, audio_file: str, sample_rate: int, force_yes: bool=Fa... method execute (line 387) | def execute(self, argv: List[str]) -> bool: method __call__ (line 441) | def __call__(self, FILE: paddlespeech/cli/st/infer.py class STExecutor (line 47) | class STExecutor(BaseExecutor): method __init__ (line 48) | def __init__(self): method _set_kaldi_bins (line 107) | def _set_kaldi_bins(self) -> os.PathLike: method _init_from_path (line 121) | def _init_from_path(self, method _check (line 182) | def _check(self, audio_file: str, sample_rate: int): method preprocess (line 189) | def preprocess(self, wav_file: Union[str, os.PathLike], model_type: str): method infer (line 260) | def infer(self, model_type: str): method postprocess (line 282) | def postprocess(self, model_type: str) -> Union[str, os.PathLike]: method execute (line 291) | def execute(self, argv: List[str]) -> bool: method __call__ (line 330) | def __call__(self, FILE: paddlespeech/cli/text/infer.py class TextExecutor (line 34) | class TextExecutor(BaseExecutor): method __init__ (line 35) | def __init__(self): method _init_from_path (line 93) | def _init_from_path(self, method _init_from_path_new (line 146) | def _init_from_path_new(self, method _clean_text (line 205) | def _clean_text(self, text): method preprocess (line 212) | def preprocess(self, text: Union[str, os.PathLike]): method infer (line 231) | def infer(self): method postprocess (line 245) | def postprocess(self, isNewTrainer: bool=False) -> Union[str, os.PathL... method execute (line 269) | def execute(self, argv: List[str]) -> bool: method __call__ (line 308) | def __call__( FILE: paddlespeech/cli/tts/infer.py class TTSExecutor (line 64) | class TTSExecutor(BaseExecutor): method __init__ (line 65) | def __init__(self): method _init_from_path (line 200) | def _init_from_path( method _init_from_path_onnx (line 353) | def _init_from_path_onnx(self, method preprocess (line 445) | def preprocess(self, input: Any, *args, **kwargs): method infer (line 456) | def infer(self, method infer_onnx (line 509) | def infer_onnx(self, method postprocess (line 565) | def postprocess(self, output: str='output.wav') -> Union[str, os.PathL... method postprocess_onnx (line 578) | def postprocess_onnx(self, method execute (line 592) | def execute(self, argv: List[str]) -> bool: method __call__ (line 671) | def __call__(self, FILE: paddlespeech/cli/utils.py function timer_register (line 55) | def timer_register(command): function cli_register (line 60) | def cli_register(name: str, description: str='') -> Any: function explicit_command_register (line 75) | def explicit_command_register(name: str, description: str='', cls: str=''): function get_command (line 85) | def get_command(name: str) -> Any: function _get_uncompress_path (line 94) | def _get_uncompress_path(filepath: os.PathLike) -> os.PathLike: function download_and_decompress (line 124) | def download_and_decompress(archive: Dict[str, str], path: str) -> os.Pa... function load_state_dict_from_url (line 154) | def load_state_dict_from_url(url: str, path: str, md5: str=None) -> os.P... function _md5 (line 165) | def _md5(text: str): class ConfigCache (line 171) | class ConfigCache: method __init__ (line 172) | def __init__(self): method cache_info (line 188) | def cache_info(self): method _initialize (line 191) | def _initialize(self): method flush (line 196) | def flush(self): class StatsWorker (line 207) | class StatsWorker(threading.Thread): method __init__ (line 208) | def __init__(self, method run (line 219) | def run(self): function _note_one_stat (line 241) | def _note_one_stat(cls_name, params={}): function _parse_args (line 299) | def _parse_args(func, *args, **kwargs): function stats_wrapper (line 320) | def stats_wrapper(executor_func): FILE: paddlespeech/cli/vector/infer.py class VectorExecutor (line 36) | class VectorExecutor(BaseExecutor): method __init__ (line 37) | def __init__(self): method execute (line 103) | def execute(self, argv: List[str]) -> bool: method _get_job_contents (line 202) | def _get_job_contents( method get_embeddings_score (line 225) | def get_embeddings_score(self, enroll_embedding, test_embedding): method __call__ (line 246) | def __call__(self, method _init_from_path (line 292) | def _init_from_path(self, method infer (line 371) | def infer(self, model_type: str): method postprocess (line 393) | def postprocess(self) -> Union[str, os.PathLike]: method preprocess (line 402) | def preprocess(self, model_type: str, input_file: Union[str, os.PathLi... method _check (line 449) | def _check(self, audio_file: str, sample_rate: int, force_yes: bool=Fa... FILE: paddlespeech/cli/whisper/infer.py class WhisperExecutor (line 48) | class WhisperExecutor(BaseExecutor): method __init__ (line 49) | def __init__(self): method _init_from_path (line 139) | def _init_from_path(self, method preprocess (line 220) | def preprocess(self, model_type: str, input: Union[str, os.PathLike]): method infer (line 268) | def infer(self, model_type: str): method postprocess (line 298) | def postprocess(self) -> Union[str, os.PathLike]: method download_resource (line 304) | def download_resource(self, url, lm_dir, md5sum): method _pcm16to32 (line 311) | def _pcm16to32(self, audio): method _pcm32to16 (line 318) | def _pcm32to16(self, audio): method _check (line 325) | def _check(self, audio_file: str, sample_rate: int, force_yes: bool=Fa... method execute (line 390) | def execute(self, argv: List[str]) -> bool: method __call__ (line 449) | def __call__(self, FILE: paddlespeech/cls/exps/panns/deploy/predict.py function extract_features (line 42) | def extract_features(files: str, **kwargs): class Predictor (line 67) | class Predictor(object): method __init__ (line 68) | def __init__(self, method predict (line 127) | def predict(self, wavs): FILE: paddlespeech/cls/exps/panns/predict.py function extract_features (line 34) | def extract_features(file: str, **feat_conf) -> paddle.Tensor: FILE: paddlespeech/cls/models/panns/classifier.py class SoundClassifier (line 17) | class SoundClassifier(nn.Layer): method __init__ (line 23) | def __init__(self, backbone, num_class, dropout=0.1): method forward (line 29) | def forward(self, x): FILE: paddlespeech/cls/models/panns/panns.py class ConvBlock (line 31) | class ConvBlock(nn.Layer): method __init__ (line 32) | def __init__(self, in_channels, out_channels): method forward (line 52) | def forward(self, x, pool_size=(2, 2), pool_type='avg'): class ConvBlock5x5 (line 76) | class ConvBlock5x5(nn.Layer): method __init__ (line 77) | def __init__(self, in_channels, out_channels): method forward (line 89) | def forward(self, x, pool_size=(2, 2), pool_type='avg'): class CNN14 (line 109) | class CNN14(nn.Layer): method __init__ (line 120) | def __init__(self, extract_embedding: bool=True): method forward (line 135) | def forward(self, x): class CNN10 (line 172) | class CNN10(nn.Layer): method __init__ (line 183) | def __init__(self, extract_embedding: bool=True): method forward (line 196) | def forward(self, x): class CNN6 (line 227) | class CNN6(nn.Layer): method __init__ (line 238) | def __init__(self, extract_embedding: bool=True): method forward (line 251) | def forward(self, x): function cnn14 (line 282) | def cnn14(pretrained: bool=False, extract_embedding: bool=True) -> CNN14: function cnn10 (line 292) | def cnn10(pretrained: bool=False, extract_embedding: bool=True) -> CNN10: function cnn6 (line 302) | def cnn6(pretrained: bool=False, extract_embedding: bool=True) -> CNN6: FILE: paddlespeech/dataset/aidatatang_200zh/aidatatang_200zh.py function create_manifest (line 54) | def create_manifest(data_dir, manifest_path_prefix): function prepare_dataset (line 120) | def prepare_dataset(url, md5sum, target_dir, manifest_path, subset): function main (line 142) | def main(): FILE: paddlespeech/dataset/aishell/aishell.py function create_manifest (line 56) | def create_manifest(data_dir, manifest_path_prefix): function download_dataset (line 131) | def download_dataset(url, md5sum, target_dir): function check_dataset (line 148) | def check_dataset(data_dir): function prepare_dataset (line 190) | def prepare_dataset(url, md5sum, target_dir, manifest_path=None, check=F... function main (line 208) | def main(): FILE: paddlespeech/dataset/download.py function md5file (line 32) | def md5file(fname): function getfile_insensitive (line 41) | def getfile_insensitive(path): function download_multi (line 51) | def download_multi(url, target_dir, extra_args): function download (line 61) | def download(url, md5sum, target_dir): function check_md5sum (line 77) | def check_md5sum(filepath: Text, md5sum: Text) -> bool: function unpack (line 90) | def unpack(filepath, target_dir, rm_tar=False): function unzip (line 100) | def unzip(filepath, target_dir, rm_tar=False): FILE: paddlespeech/dataset/s2t/avg_model.py function average_checkpoints (line 23) | def average_checkpoints(dst_model="", function define_argparse (line 95) | def define_argparse(): function main (line 120) | def main(): FILE: paddlespeech/dataset/s2t/build_vocab.py function count_manifest (line 34) | def count_manifest(counter, text_feature, manifest_path): function dump_text_manifest (line 53) | def dump_text_manifest(fileobj, manifest_path, key='text'): function build_vocab (line 68) | def build_vocab(manifest_paths="", function define_argparse (line 131) | def define_argparse(): function main (line 163) | def main(): FILE: paddlespeech/dataset/s2t/compute_mean_std.py function compute_cmvn (line 25) | def compute_cmvn(manifest_path="data/librispeech/manifest.train", function define_argparse (line 65) | def define_argparse(): function main (line 100) | def main(): FILE: paddlespeech/dataset/s2t/compute_wer.py function characterize (line 16) | def characterize(string): function stripoff_tags (line 49) | def stripoff_tags(x): function normalize (line 65) | def normalize(sentence, ignore_words, cs, split=None): class Calculator (line 86) | class Calculator: method __init__ (line 87) | def __init__(self): method calculate (line 96) | def calculate(self, lab, rec): method overall (line 218) | def overall(self): method cluster (line 228) | def cluster(self, data): method keys (line 239) | def keys(self): function width (line 243) | def width(string): function default_cluster (line 247) | def default_cluster(word): function usage (line 287) | def usage(): function main (line 296) | def main(): FILE: paddlespeech/dataset/s2t/format_data.py function define_argparse (line 28) | def define_argparse(): function format_data (line 54) | def format_data( function main (line 149) | def main(): FILE: paddlespeech/dataset/s2t/format_rsl.py function transform_hyp (line 33) | def transform_hyp(origin, trans, trans_sclite): function transform_ref (line 60) | def transform_ref(origin, trans, trans_sclite): function define_argparse (line 87) | def define_argparse(): function format_result (line 119) | def format_result(origin_hyp="", function main (line 135) | def main(): FILE: paddlespeech/kws/exps/mdtc/collate.py function collate_features (line 19) | def collate_features(batch): FILE: paddlespeech/kws/exps/mdtc/compute_det.py function load_label_and_score (line 27) | def load_label_and_score(keyword_index: int, FILE: paddlespeech/kws/exps/mdtc/plot_det_curve.py function load_stats_file (line 32) | def load_stats_file(stats_file): function plot_det_curve (line 43) | def plot_det_curve(keywords, stats_file, figure_file, xlim, x_step, ylim, FILE: paddlespeech/kws/models/loss.py function padding_mask (line 19) | def padding_mask(lengths: paddle.Tensor) -> paddle.Tensor: function fill_mask_elements (line 27) | def fill_mask_elements(condition: paddle.Tensor, value: float, function max_pooling_loss (line 34) | def max_pooling_loss(logits: paddle.Tensor, FILE: paddlespeech/kws/models/mdtc.py class DSDilatedConv1d (line 21) | class DSDilatedConv1d(nn.Layer): method __init__ (line 22) | def __init__( method forward (line 50) | def forward(self, inputs: paddle.Tensor): class TCNBlock (line 57) | class TCNBlock(nn.Layer): method __init__ (line 58) | def __init__( method forward (line 86) | def forward(self, inputs: paddle.Tensor): class TCNStack (line 101) | class TCNStack(nn.Layer): method __init__ (line 102) | def __init__( method calculate_receptive_fields (line 121) | def calculate_receptive_fields(self): method build_dilations (line 127) | def build_dilations(self): method stack_tcn_blocks (line 134) | def stack_tcn_blocks(self): method forward (line 155) | def forward(self, inputs: paddle.Tensor): class MDTC (line 160) | class MDTC(nn.Layer): method __init__ (line 161) | def __init__( method forward (line 186) | def forward(self, x: paddle.Tensor): class KWSModel (line 224) | class KWSModel(nn.Layer): method __init__ (line 225) | def __init__(self, backbone, num_keywords): method forward (line 231) | def forward(self, x): FILE: paddlespeech/resource/resource.py class CommonTaskResource (line 32) | class CommonTaskResource: method __init__ (line 33) | def __init__(self, task: str, model_format: str='dynamic', **kwargs): method set_task_model (line 62) | def set_task_model(self, method get_model_class (line 103) | def get_model_class(model_name) -> List[object]: method get_versions (line 122) | def get_versions(self, model_tag: str) -> List[str]: method _get_default_version (line 133) | def _get_default_version(self, model_tag: str) -> str: method _get_model_dir (line 144) | def _get_model_dir(self, model_type: int=0) -> os.PathLike: method _get_pretrained_models (line 162) | def _get_pretrained_models(self) -> Dict[str, str]: method _inference_mode_filter (line 178) | def _inference_mode_filter(self, inference_mode: Optional[str]): method _fetch (line 217) | def _fetch(res_dict: Dict[str, str], method _format_path (line 231) | def _format_path(res_dict: Dict[str, str]): FILE: paddlespeech/s2t/__init__.py function cat (line 53) | def cat(xs, dim=0): function item (line 64) | def item(x: paddle.Tensor): function func_long (line 75) | def func_long(x: paddle.Tensor): function new_full (line 94) | def new_full(x: paddle.Tensor, function contiguous (line 109) | def contiguous(xs: paddle.Tensor) -> paddle.Tensor: function view (line 121) | def view(xs: paddle.Tensor, *args: int) -> paddle.Tensor: function view_as (line 131) | def view_as(xs: paddle.Tensor, ys: paddle.Tensor) -> paddle.Tensor: function is_broadcastable (line 142) | def is_broadcastable(shp1, shp2): function broadcast_shape (line 151) | def broadcast_shape(shp1, shp2): function masked_fill (line 158) | def masked_fill(xs: paddle.Tensor, function masked_fill_ (line 183) | def masked_fill_(xs: paddle.Tensor, function fill_ (line 202) | def fill_(xs: paddle.Tensor, value: Union[float, int]) -> paddle.Tensor: function repeat (line 215) | def repeat(xs: paddle.Tensor, *size: Any) -> paddle.Tensor: function type_as (line 240) | def type_as(x: paddle.Tensor, other: paddle.Tensor) -> paddle.Tensor: function to (line 251) | def to(x: paddle.Tensor, *args, **kwargs) -> paddle.Tensor: function func_float (line 267) | def func_float(x: paddle.Tensor) -> paddle.Tensor: function func_int (line 278) | def func_int(x: paddle.Tensor) -> paddle.Tensor: function tolist (line 288) | def tolist(x: paddle.Tensor) -> List[Any]: class LayerDict (line 308) | class LayerDict(paddle.nn.Layer): method __init__ (line 352) | def __init__(self, modules: Optional[Mapping[str, Layer]]=None) -> None: method __getitem__ (line 357) | def __getitem__(self, key: str) -> Layer: method __setitem__ (line 360) | def __setitem__(self, key: str, module: Layer) -> None: method __delitem__ (line 363) | def __delitem__(self, key: str) -> None: method __len__ (line 366) | def __len__(self) -> int: method __iter__ (line 369) | def __iter__(self) -> Iterator[str]: method __contains__ (line 372) | def __contains__(self, key: str) -> bool: method clear (line 375) | def clear(self) -> None: method pop (line 380) | def pop(self, key: str) -> Layer: method keys (line 390) | def keys(self) -> Iterable[str]: method items (line 395) | def items(self) -> Iterable[Tuple[str, Layer]]: method values (line 400) | def values(self) -> Iterable[Layer]: method update (line 405) | def update(self, modules: Mapping[str, Layer]) -> None: FILE: paddlespeech/s2t/decoders/beam_search/batch_beam_search.py class BatchBeamSearch (line 17) | class BatchBeamSearch(): FILE: paddlespeech/s2t/decoders/beam_search/beam_search.py class Hypothesis (line 34) | class Hypothesis(NamedTuple): method asdict (line 42) | def asdict(self) -> dict: class BeamSearch (line 51) | class BeamSearch(paddle.nn.Layer): method __init__ (line 54) | def __init__( method init_hyp (line 126) | def init_hyp(self, x: paddle.Tensor) -> List[Hypothesis]: method append_token (line 150) | def append_token(xs: paddle.Tensor, method score_full (line 165) | def score_full(self, hyp: Hypothesis, x: paddle.Tensor method score_partial (line 188) | def score_partial(self, method beam (line 217) | def beam(self, weighted_scores: paddle.Tensor, method merge_scores (line 250) | def merge_scores( method merge_states (line 280) | def merge_states(self, states: Any, part_states: Any, part_idx: int) -... method search (line 301) | def search(self, running_hyps: List[Hypothesis], method forward (line 352) | def forward(self, method post_process (line 432) | def post_process( function beam_search (line 481) | def beam_search( FILE: paddlespeech/s2t/decoders/ctcdecoder/decoders_deprecated.py function ctc_greedy_decoder (line 22) | def ctc_greedy_decoder(probs_seq, vocabulary): function ctc_beam_search_decoder (line 52) | def ctc_beam_search_decoder(probs_seq, function ctc_beam_search_decoder_batch (line 199) | def ctc_beam_search_decoder_batch(probs_split, FILE: paddlespeech/s2t/decoders/ctcdecoder/scorer_deprecated.py class Scorer (line 21) | class Scorer(object): method __init__ (line 36) | def __init__(self, alpha, beta, model_path): method _language_model_score (line 44) | def _language_model_score(self, sentence): method _word_count (line 51) | def _word_count(self, sentence): method reset_params (line 56) | def reset_params(self, alpha, beta): method __call__ (line 61) | def __call__(self, sentence, log=False): FILE: paddlespeech/s2t/decoders/ctcdecoder/swig_wrapper.py class Scorer (line 18) | class Scorer(paddlespeech_ctcdecoders.Scorer): method __init__ (line 33) | def __init__(self, alpha, beta, model_path, vocabulary): function ctc_greedy_decoding (line 38) | def ctc_greedy_decoding(probs_seq, vocabulary, blank_id): function ctc_beam_search_decoding (line 55) | def ctc_beam_search_decoding(probs_seq, function ctc_beam_search_decoding_batch (line 94) | def ctc_beam_search_decoding_batch(probs_split, class CTCBeamSearchDecoder (line 140) | class CTCBeamSearchDecoder(paddlespeech_ctcdecoders.CtcBeamSearchDecoder... method __init__ (line 155) | def __init__(self, vocab_list, batch_size, beam_size, num_processes, FILE: paddlespeech/s2t/decoders/ctcdecoder/tests/test_decoders.py class TestDecoders (line 20) | class TestDecoders(unittest.TestCase): method setUp (line 21) | def setUp(self): method test_greedy_decoder_1 (line 65) | def test_greedy_decoder_1(self): method test_greedy_decoder_2 (line 70) | def test_greedy_decoder_2(self): method test_beam_search_decoder_1 (line 75) | def test_beam_search_decoder_1(self): method test_beam_search_decoder_2 (line 82) | def test_beam_search_decoder_2(self): method test_beam_search_decoder_batch (line 89) | def test_beam_search_decoder_batch(self): FILE: paddlespeech/s2t/decoders/recog.py function get_config (line 37) | def get_config(config_path): function load_trained_model (line 43) | def load_trained_model(args): function load_trained_lm (line 55) | def load_trained_lm(args): function recog_v2 (line 65) | def recog_v2(args): FILE: paddlespeech/s2t/decoders/recog_bin.py function get_parser (line 28) | def get_parser(): function main (line 296) | def main(args): FILE: paddlespeech/s2t/decoders/scorers/ctc.py class CTCPrefixScorer (line 24) | class CTCPrefixScorer(BatchPartialScorerInterface): method __init__ (line 27) | def __init__(self, ctc: paddle.nn.Layer, eos: int): method init_state (line 40) | def init_state(self, x: paddle.Tensor): method select_state (line 54) | def select_state(self, state, i, new_id=None): method score_partial (line 79) | def score_partial(self, y, ids, state, x): method batch_init_state (line 100) | def batch_init_state(self, x: paddle.Tensor): method batch_score_partial (line 114) | def batch_score_partial(self, y, ids, state, x): method extend_prob (line 135) | def extend_prob(self, x: paddle.Tensor): method extend_state (line 148) | def extend_state(self, state): FILE: paddlespeech/s2t/decoders/scorers/ctc_prefix_score.py class CTCPrefixScorePD (line 9) | class CTCPrefixScorePD(): method __init__ (line 20) | def __init__(self, x, xlens, blank, eos, margin=0): method __call__ (line 66) | def __call__(self, y, state, scoring_ids=None, att_w=None): method index_select_state (line 189) | def index_select_state(self, state, best_ids): method extend_prob (line 223) | def extend_prob(self, x): method extend_state (line 245) | def extend_state(self, state): class CTCPrefixScore (line 272) | class CTCPrefixScore(): method __init__ (line 281) | def __init__(self, x, blank, eos, xp): method initial_state (line 289) | def initial_state(self): method __call__ (line 304) | def __call__(self, y, cs, r_prev): FILE: paddlespeech/s2t/decoders/scorers/length_bonus.py class LengthBonus (line 25) | class LengthBonus(BatchScorerInterface): method __init__ (line 28) | def __init__(self, n_vocab: int): method score (line 37) | def score(self, y, state, x): method batch_score (line 54) | def batch_score(self, FILE: paddlespeech/s2t/decoders/scorers/ngram.py class Ngrambase (line 25) | class Ngrambase(ABC): method __init__ (line 28) | def __init__(self, ngram_model, token_list): method init_state (line 41) | def init_state(self, x): method score_partial_ (line 47) | def score_partial_(self, y, next_token, state, x): class NgramFullScorer (line 72) | class NgramFullScorer(Ngrambase, BatchScorerInterface): method score (line 75) | def score(self, y, state, x): class NgramPartScorer (line 94) | class NgramPartScorer(Ngrambase, PartialScorerInterface): method score_partial (line 97) | def score_partial(self, y, next_token, state, x): method select_state (line 114) | def select_state(self, state, i): FILE: paddlespeech/s2t/decoders/scorers/scorer_interface.py class ScorerInterface (line 24) | class ScorerInterface: method init_state (line 42) | def init_state(self, x: paddle.Tensor) -> Any: method select_state (line 53) | def select_state(self, state: Any, i: int, new_id: int=None) -> Any: method score (line 67) | def score(self, y: paddle.Tensor, state: Any, method final_score (line 84) | def final_score(self, state: Any) -> float: class BatchScorerInterface (line 97) | class BatchScorerInterface(ScorerInterface): method batch_init_state (line 100) | def batch_init_state(self, x: paddle.Tensor) -> Any: method batch_score (line 111) | def batch_score(self, class PartialScorerInterface (line 142) | class PartialScorerInterface(ScorerInterface): method score_partial (line 157) | def score_partial(self, class BatchPartialScorerInterface (line 179) | class BatchPartialScorerInterface(BatchScorerInterface, PartialScorerInt... method batch_score_partial (line 182) | def batch_score_partial( FILE: paddlespeech/s2t/decoders/utils.py function end_detect (line 23) | def end_detect(ended_hyps, i, M=3, D_end=np.log(1 * np.exp(-10))): function parse_hypothesis (line 58) | def parse_hypothesis(hyp, char_list): function add_results_to_json (line 82) | def add_results_to_json(js, nbest_hyps, char_list): FILE: paddlespeech/s2t/exps/__init__.py function dynamic_import_trainer (line 25) | def dynamic_import_trainer(module): function dynamic_import_tester (line 49) | def dynamic_import_tester(module): FILE: paddlespeech/s2t/exps/deepspeech2/bin/deploy/client.py function on_press_release (line 40) | def on_press_release(x): function callback (line 58) | def callback(in_data, frame_count, time_info, status): function main (line 71) | def main(): FILE: paddlespeech/s2t/exps/deepspeech2/bin/deploy/runtime.py function init_predictor (line 35) | def init_predictor(args): function run (line 54) | def run(predictor, img): function inference (line 76) | def inference(config, args): function start_server (line 80) | def start_server(config, args): function main (line 137) | def main(config, args): FILE: paddlespeech/s2t/exps/deepspeech2/bin/deploy/send.py function main (line 36) | def main(): FILE: paddlespeech/s2t/exps/deepspeech2/bin/deploy/server.py function start_server (line 33) | def start_server(config, args): function main (line 94) | def main(config, args): FILE: paddlespeech/s2t/exps/deepspeech2/bin/export.py function main_sp (line 22) | def main_sp(config, args): function main (line 29) | def main(config, args): FILE: paddlespeech/s2t/exps/deepspeech2/bin/test.py function main_sp (line 22) | def main_sp(config, args): function main (line 29) | def main(config, args): FILE: paddlespeech/s2t/exps/deepspeech2/bin/test_export.py function main_sp (line 22) | def main_sp(config, args): function main (line 29) | def main(config, args): FILE: paddlespeech/s2t/exps/deepspeech2/bin/test_wav.py class DeepSpeech2Tester_hub (line 36) | class DeepSpeech2Tester_hub(): method __init__ (line 37) | def __init__(self, config, args): method compute_result_transcripts (line 52) | def compute_result_transcripts(self, audio, audio_len, vocab_list, cfg): method test (line 63) | def test(self): method run_test (line 86) | def run_test(self): method setup (line 93) | def setup(self): method setup_output_dir (line 103) | def setup_output_dir(self): method setup_model (line 116) | def setup_model(self): method setup_checkpointer (line 124) | def setup_checkpointer(self): method resume (line 139) | def resume(self): function check (line 148) | def check(audio_file): function main_sp (line 162) | def main_sp(config, args): function main (line 168) | def main(config, args): FILE: paddlespeech/s2t/exps/deepspeech2/bin/train.py function main_sp (line 22) | def main_sp(config, args): function main (line 28) | def main(config, args): FILE: paddlespeech/s2t/exps/deepspeech2/model.py class DeepSpeech2Trainer (line 43) | class DeepSpeech2Trainer(Trainer): method __init__ (line 44) | def __init__(self, config, args): method train_batch (line 47) | def train_batch(self, batch_index, batch_data, msg): method valid (line 97) | def valid(self): method setup_model (line 129) | def setup_model(self): method setup_dataloader (line 163) | def setup_dataloader(self): class DeepSpeech2Tester (line 235) | class DeepSpeech2Tester(DeepSpeech2Trainer): method __init__ (line 236) | def __init__(self, config, args): method ordid2token (line 242) | def ordid2token(self, texts, texts_len): method compute_metrics (line 252) | def compute_metrics(self, method compute_result_transcripts (line 290) | def compute_result_transcripts(self, audio, audio_len): method test (line 296) | def test(self): method export (line 334) | def export(self): class DeepSpeech2ExportTester (line 348) | class DeepSpeech2ExportTester(DeepSpeech2Tester): method __init__ (line 349) | def __init__(self, config, args): method test (line 356) | def test(self): method compute_result_transcripts (line 405) | def compute_result_transcripts(self, audio, audio_len): method run_test (line 435) | def run_test(self): method static_forward_online (line 444) | def static_forward_online(self, audio, audio_len, method static_forward_offline (line 586) | def static_forward_offline(self, audio, audio_len): method setup_model (line 630) | def setup_model(self): FILE: paddlespeech/s2t/exps/hubert/bin/test.py function main_sp (line 24) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/hubert/bin/test_wav.py class HubertInfer (line 31) | class HubertInfer(): method __init__ (line 32) | def __init__(self, config, args): method run (line 54) | def run(self): function check (line 76) | def check(audio_file): function main (line 94) | def main(config, args): FILE: paddlespeech/s2t/exps/hubert/bin/train.py function main_sp (line 25) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/hubert/model.py function clip_grad_norm_ (line 54) | def clip_grad_norm_( class HubertASRTrainer (line 138) | class HubertASRTrainer(Trainer): method __init__ (line 139) | def __init__(self, config, args): method update_average (line 145) | def update_average(self, batch_index, loss): method before_train (line 161) | def before_train(self): method train_batch (line 174) | def train_batch(self, batch_index, batch, msg): method valid (line 256) | def valid(self): method save (line 306) | def save(self, tag=None, infos: dict=None): method resume_or_scratch (line 355) | def resume_or_scratch(self): method do_train (line 405) | def do_train(self): method dataio_prepare (line 492) | def dataio_prepare(self, hparams): method setup_dataloader (line 592) | def setup_dataloader(self): method setup_model (line 643) | def setup_model(self): class HubertASRTester (line 751) | class HubertASRTester(HubertASRTrainer): method __init__ (line 752) | def __init__(self, config, args): method id2token (line 758) | def id2token(self, texts, texts_len): method compute_metrics (line 767) | def compute_metrics(self, id, audio, audio_len, texts, texts_len, method sb_compute_metrics (line 811) | def sb_compute_metrics(self, id, sig, wrd, tokens, fout=None): method test (line 856) | def test(self): FILE: paddlespeech/s2t/exps/lm/transformer/bin/cacu_perplexity.py function get_parser (line 19) | def get_parser(): function main (line 74) | def main(args): FILE: paddlespeech/s2t/exps/lm/transformer/lm_cacu_perplexity.py function get_config (line 30) | def get_config(config_path): function load_trained_lm (line 36) | def load_trained_lm(args): function write_dict_into_file (line 46) | def write_dict_into_file(ppl_dict, name): function cacu_perplexity (line 53) | def cacu_perplexity( function run_get_perplexity (line 117) | def run_get_perplexity(args): FILE: paddlespeech/s2t/exps/u2/bin/alignment.py function main_sp (line 22) | def main_sp(config, args): function main (line 29) | def main(config, args): FILE: paddlespeech/s2t/exps/u2/bin/export.py function main_sp (line 22) | def main_sp(config, args): function main (line 29) | def main(config, args): FILE: paddlespeech/s2t/exps/u2/bin/quant.py class U2Infer (line 30) | class U2Infer(): method __init__ (line 31) | def __init__(self, config, args): method run (line 62) | def run(self): function main (line 171) | def main(config, args): FILE: paddlespeech/s2t/exps/u2/bin/test.py function main_sp (line 24) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/u2/bin/test_wav.py class U2Infer (line 35) | class U2Infer(): method __init__ (line 36) | def __init__(self, config, args): method run (line 65) | def run(self): function check (line 103) | def check(audio_file): function main (line 121) | def main(config, args): FILE: paddlespeech/s2t/exps/u2/bin/train.py function main_sp (line 25) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/u2/model.py class U2Trainer (line 47) | class U2Trainer(Trainer): method __init__ (line 48) | def __init__(self, config, args): method train_batch (line 51) | def train_batch(self, batch_index, batch_data, scaler, msg): method valid (line 124) | def valid(self): method do_train (line 165) | def do_train(self): method setup_dataloader (line 243) | def setup_dataloader(self): method setup_model (line 261) | def setup_model(self): class U2Tester (line 341) | class U2Tester(U2Trainer): method __init__ (line 342) | def __init__(self, config, args): method id2token (line 350) | def id2token(self, texts, texts_len, text_feature): method compute_metrics (line 359) | def compute_metrics(self, method test (line 418) | def test(self): method align (line 480) | def align(self): method load_inferspec (line 486) | def load_inferspec(self): method export (line 508) | def export(self): FILE: paddlespeech/s2t/exps/u2/trainer.py class U2Trainer (line 40) | class U2Trainer(Trainer): method __init__ (line 41) | def __init__(self, config, args): method setup_dataloader (line 44) | def setup_dataloader(self): method setup_model (line 121) | def setup_model(self): method setup_updater (line 181) | def setup_updater(self): method run (line 213) | def run(self): FILE: paddlespeech/s2t/exps/u2_kaldi/bin/test.py function main_sp (line 29) | def main_sp(config, args): function main (line 42) | def main(config, args): FILE: paddlespeech/s2t/exps/u2_kaldi/bin/train.py function main_sp (line 30) | def main_sp(config, args): function main (line 37) | def main(config, args): FILE: paddlespeech/s2t/exps/u2_kaldi/model.py class U2Trainer (line 44) | class U2Trainer(Trainer): method __init__ (line 45) | def __init__(self, config, args): method train_batch (line 48) | def train_batch(self, batch_index, batch_data, msg): method valid (line 105) | def valid(self): method do_train (line 147) | def do_train(self): method setup_dataloader (line 206) | def setup_dataloader(self): method setup_model (line 228) | def setup_model(self): class U2Tester (line 275) | class U2Tester(U2Trainer): method __init__ (line 276) | def __init__(self, config, args): method id2token (line 284) | def id2token(self, texts, texts_len, text_feature): method compute_metrics (line 293) | def compute_metrics(self, method test (line 351) | def test(self): method align (line 413) | def align(self): method load_inferspec (line 419) | def load_inferspec(self): method export (line 440) | def export(self): method setup_dict (line 448) | def setup_dict(self): method setup (line 453) | def setup(self): FILE: paddlespeech/s2t/exps/u2_st/bin/export.py function main_sp (line 22) | def main_sp(config, args): function main (line 29) | def main(config, args): FILE: paddlespeech/s2t/exps/u2_st/bin/test.py function main_sp (line 24) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/u2_st/bin/train.py function main_sp (line 25) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/u2_st/model.py class U2STTrainer (line 45) | class U2STTrainer(Trainer): method __init__ (line 46) | def __init__(self, config, args): method train_batch (line 49) | def train_batch(self, batch_index, batch_data, msg): method valid (line 121) | def valid(self): method do_train (line 169) | def do_train(self): method setup_dataloader (line 245) | def setup_dataloader(self): method setup_model (line 264) | def setup_model(self): class U2STTester (line 328) | class U2STTester(U2STTrainer): method __init__ (line 329) | def __init__(self, config, args): method id2token (line 337) | def id2token(self, texts, texts_len, text_feature): method translate (line 346) | def translate(self, audio, audio_len): method compute_translation_metrics (line 364) | def compute_translation_metrics(self, method test (line 415) | def test(self): method load_inferspec (line 473) | def load_inferspec(self): method export (line 494) | def export(self): FILE: paddlespeech/s2t/exps/wav2vec2/bin/test.py function main_sp (line 24) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/wav2vec2/bin/test_wav.py class Wav2vec2Infer (line 32) | class Wav2vec2Infer(): method __init__ (line 33) | def __init__(self, config, args): method run (line 61) | def run(self): function check (line 83) | def check(audio_file): function main (line 101) | def main(config, args): FILE: paddlespeech/s2t/exps/wav2vec2/bin/train.py function main_sp (line 25) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/wav2vec2/model.py function clip_grad_norm_ (line 53) | def clip_grad_norm_( class Wav2Vec2ASRTrainer (line 137) | class Wav2Vec2ASRTrainer(Trainer): method __init__ (line 138) | def __init__(self, config, args): method update_average (line 144) | def update_average(self, batch_index, loss): method before_train (line 160) | def before_train(self): method train_batch (line 173) | def train_batch(self, batch_index, batch, msg): method valid (line 255) | def valid(self): method save (line 305) | def save(self, tag=None, infos: dict=None): method resume_or_scratch (line 354) | def resume_or_scratch(self): method do_train (line 404) | def do_train(self): method dataio_prepare (line 492) | def dataio_prepare(self, hparams): method setup_dataloader (line 591) | def setup_dataloader(self): method setup_model (line 642) | def setup_model(self): class Wav2Vec2ASRTester (line 751) | class Wav2Vec2ASRTester(Wav2Vec2ASRTrainer): method __init__ (line 752) | def __init__(self, config, args): method id2token (line 758) | def id2token(self, texts, texts_len): method compute_metrics (line 767) | def compute_metrics(self, id, audio, audio_len, texts, texts_len, method sb_compute_metrics (line 811) | def sb_compute_metrics(self, id, sig, wrd, tokens, fout=None): method test (line 856) | def test(self): FILE: paddlespeech/s2t/exps/wavlm/bin/test.py function main_sp (line 25) | def main_sp(config, args): function main (line 32) | def main(config, args): FILE: paddlespeech/s2t/exps/wavlm/bin/test_wav.py class WavLMInfer (line 32) | class WavLMInfer(): method __init__ (line 33) | def __init__(self, config, args): method run (line 61) | def run(self): function check (line 83) | def check(audio_file): function main (line 101) | def main(config, args): FILE: paddlespeech/s2t/exps/wavlm/bin/train.py function main_sp (line 25) | def main_sp(config, args): function main (line 31) | def main(config, args): FILE: paddlespeech/s2t/exps/wavlm/model.py function clip_grad_norm_ (line 53) | def clip_grad_norm_( class WavLMASRTrainer (line 137) | class WavLMASRTrainer(Trainer): method __init__ (line 138) | def __init__(self, config, args): method update_average (line 144) | def update_average(self, batch_index, loss): method before_train (line 160) | def before_train(self): method train_batch (line 173) | def train_batch(self, batch_index, batch, msg): method valid (line 255) | def valid(self): method save (line 305) | def save(self, tag=None, infos: dict=None): method resume_or_scratch (line 354) | def resume_or_scratch(self): method do_train (line 404) | def do_train(self): method dataio_prepare (line 491) | def dataio_prepare(self, hparams): method setup_dataloader (line 590) | def setup_dataloader(self): method setup_model (line 641) | def setup_model(self): class WavLMASRTester (line 750) | class WavLMASRTester(WavLMASRTrainer): method __init__ (line 751) | def __init__(self, config, args): method id2token (line 757) | def id2token(self, texts, texts_len): method compute_metrics (line 766) | def compute_metrics(self, id, audio, audio_len, texts, texts_len, method sb_compute_metrics (line 810) | def sb_compute_metrics(self, id, sig, wrd, tokens, fout=None): method test (line 855) | def test(self): FILE: paddlespeech/s2t/exps/whisper/test_wav.py class WhisperInfer (line 35) | class WhisperInfer(): method __init__ (line 36) | def __init__(self, config, args): method run (line 52) | def run(self): function check (line 80) | def check(audio_file: str): function main (line 98) | def main(config, args): FILE: paddlespeech/s2t/frontend/audio.py class AudioSegment (line 31) | class AudioSegment(): method __init__ (line 41) | def __init__(self, samples, sample_rate): method __eq__ (line 51) | def __eq__(self, other): method __ne__ (line 63) | def __ne__(self, other): method __str__ (line 67) | def __str__(self): method from_file (line 74) | def from_file(cls, file, infos=None): method slice_from_file (line 93) | def slice_from_file(cls, file, start=None, end=None): method from_sequence_file (line 141) | def from_sequence_file(cls, filepath): method from_bytes (line 199) | def from_bytes(cls, bytes): method from_pcm (line 212) | def from_pcm(cls, samples, sample_rate): method concatenate (line 224) | def concatenate(cls, *segments): method make_silence (line 250) | def make_silence(cls, duration, sample_rate): method to_wav_file (line 263) | def to_wav_file(self, filepath, dtype='float32'): method superimpose (line 288) | def superimpose(self, other): method to_bytes (line 309) | def to_bytes(self, dtype='float32'): method to (line 321) | def to(self, dtype='int16'): method gain_db (line 333) | def gain_db(self, gain): method change_speed (line 343) | def change_speed(self, speed_rate): method normalize (line 391) | def normalize(self, target_db=-20, max_gain_db=300.0): method normalize_online_bayesian (line 415) | def normalize_online_bayesian(self, method resample (line 456) | def resample(self, target_sample_rate, filter='kaiser_best'): method pad_silence (line 471) | def pad_silence(self, duration, sides='both'): method shift (line 499) | def shift(self, shift_ms): method subsegment (line 524) | def subsegment(self, start_sec=None, end_sec=None): method random_subsegment (line 558) | def random_subsegment(self, subsegment_length, rng=None): method convolve (line 577) | def convolve(self, impulse_segment, allow_resample=False): method convolve_and_normalize (line 601) | def convolve_and_normalize(self, impulse_segment, allow_resample=False): method add_noise (line 618) | def add_noise(self, method samples (line 667) | def samples(self): method sample_rate (line 676) | def sample_rate(self): method num_samples (line 685) | def num_samples(self): method duration (line 694) | def duration(self): method rms_db (line 703) | def rms_db(self): method _convert_samples_to_float32 (line 713) | def _convert_samples_to_float32(self, samples): method _convert_samples_from_float32 (line 721) | def _convert_samples_from_float32(self, samples, dtype): FILE: paddlespeech/s2t/frontend/augmentor/augmentation.py class AugmentationPipeline (line 42) | class AugmentationPipeline(): method __init__ (line 103) | def __init__(self, preprocess_conf: str, random_seed: int=0): method __call__ (line 125) | def __call__(self, xs, uttid_list=None, **kwargs): method transform_audio (line 170) | def transform_audio(self, audio_segment): method transform_feature (line 182) | def transform_feature(self, spec_segment): method _parse_pipeline_from (line 193) | def _parse_pipeline_from(self, aug_type='all'): method _get_augmentor (line 222) | def _get_augmentor(self, augmentor_type, params): FILE: paddlespeech/s2t/frontend/augmentor/base.py class AugmentorBase (line 19) | class AugmentorBase(): method __init__ (line 28) | def __init__(self): method __call__ (line 32) | def __call__(self, xs): method transform_audio (line 36) | def transform_audio(self, audio_segment): method transform_feature (line 50) | def transform_feature(self, spec_segment): FILE: paddlespeech/s2t/frontend/augmentor/impulse_response.py class ImpulseResponseAugmentor (line 21) | class ImpulseResponseAugmentor(AugmentorBase): method __init__ (line 30) | def __init__(self, rng, impulse_manifest_path): method __call__ (line 35) | def __call__(self, x, uttid=None, train=True): method transform_audio (line 41) | def transform_audio(self, audio_segment): FILE: paddlespeech/s2t/frontend/augmentor/noise_perturb.py class NoisePerturbAugmentor (line 21) | class NoisePerturbAugmentor(AugmentorBase): method __init__ (line 34) | def __init__(self, rng, min_snr_dB, max_snr_dB, noise_manifest_path): method __call__ (line 41) | def __call__(self, x, uttid=None, train=True): method transform_audio (line 47) | def transform_audio(self, audio_segment): FILE: paddlespeech/s2t/frontend/augmentor/online_bayesian_normalization.py class OnlineBayesianNormalizationAugmentor (line 18) | class OnlineBayesianNormalizationAugmentor(AugmentorBase): method __init__ (line 35) | def __init__(self, method __call__ (line 47) | def __call__(self, x, uttid=None, train=True): method transform_audio (line 53) | def transform_audio(self, audio_segment): FILE: paddlespeech/s2t/frontend/augmentor/resample.py class ResampleAugmentor (line 18) | class ResampleAugmentor(AugmentorBase): method __init__ (line 30) | def __init__(self, rng, new_sample_rate): method __call__ (line 34) | def __call__(self, x, uttid=None, train=True): method transform_audio (line 40) | def transform_audio(self, audio_segment): FILE: paddlespeech/s2t/frontend/augmentor/shift_perturb.py class ShiftPerturbAugmentor (line 18) | class ShiftPerturbAugmentor(AugmentorBase): method __init__ (line 29) | def __init__(self, rng, min_shift_ms, max_shift_ms): method __call__ (line 34) | def __call__(self, x, uttid=None, train=True): method transform_audio (line 40) | def transform_audio(self, audio_segment): FILE: paddlespeech/s2t/frontend/augmentor/spec_augment.py class SpecAugmentor (line 26) | class SpecAugmentor(AugmentorBase): method __init__ (line 37) | def __init__(self, method librispeech_basic (line 94) | def librispeech_basic(self): method librispeech_double (line 102) | def librispeech_double(self): method switchboard_mild (line 110) | def switchboard_mild(self): method switchboard_strong (line 118) | def switchboard_strong(self): method freq_mask (line 127) | def freq_mask(self): method time_mask (line 131) | def time_mask(self): method __repr__ (line 134) | def __repr__(self): method time_warp (line 137) | def time_warp(self, x, mode='PIL'): method mask_freq (line 181) | def mask_freq(self, x, replace_with_zero=False): method mask_time (line 203) | def mask_time(self, x, replace_with_zero=False): method __call__ (line 238) | def __call__(self, x, train=True): method transform_feature (line 243) | def transform_feature(self, x: np.ndarray): FILE: paddlespeech/s2t/frontend/augmentor/speed_perturb.py class SpeedPerturbAugmentor (line 20) | class SpeedPerturbAugmentor(AugmentorBase): method __init__ (line 23) | def __init__(self, rng, min_speed_rate=0.9, max_speed_rate=1.1, method __call__ (line 82) | def __call__(self, x, uttid=None, train=True): method transform_audio (line 88) | def transform_audio(self, audio_segment): FILE: paddlespeech/s2t/frontend/augmentor/volume_perturb.py class VolumePerturbAugmentor (line 18) | class VolumePerturbAugmentor(AugmentorBase): method __init__ (line 35) | def __init__(self, rng, min_gain_dBFS, max_gain_dBFS): method __call__ (line 40) | def __call__(self, x, uttid=None, train=True): method transform_audio (line 46) | def transform_audio(self, audio_segment): FILE: paddlespeech/s2t/frontend/featurizer/audio_featurizer.py class AudioFeaturizer (line 23) | class AudioFeaturizer(): method __init__ (line 51) | def __init__(self, method featurize (line 77) | def featurize(self, method stride_ms (line 111) | def stride_ms(self): method feature_size (line 115) | def feature_size(self): method _compute_specgram (line 135) | def _compute_specgram(self, audio_segment): method _specgram_real (line 172) | def _specgram_real(self, samples, window_size, stride_size, sample_rate): method _compute_linear_specgram (line 196) | def _compute_linear_specgram(self, method _concat_delta_delta (line 240) | def _concat_delta_delta(self, feat): method _compute_mfcc (line 257) | def _compute_mfcc(self, method _compute_fbank (line 314) | def _compute_fbank(self, FILE: paddlespeech/s2t/frontend/featurizer/speech_featurizer.py class SpeechFeaturizer (line 19) | class SpeechFeaturizer(): method __init__ (line 23) | def __init__(self, method featurize (line 63) | def featurize(self, speech_segment, keep_transcription_text): method text_featurize (line 88) | def text_featurize(self, text, keep_transcription_text): FILE: paddlespeech/s2t/frontend/featurizer/text_featurizer.py class TextFeaturizer (line 34) | class TextFeaturizer(): method __init__ (line 35) | def __init__(self, unit_type, vocab, spm_model_prefix=None, maskctc=Fa... method tokenize (line 67) | def tokenize(self, text, replace_space=True): method detokenize (line 77) | def detokenize(self, tokens): method featurize (line 87) | def featurize(self, text): method defeaturize (line 106) | def defeaturize(self, idxs): method char_tokenize (line 129) | def char_tokenize(self, text, replace_space=True): method char_detokenize (line 146) | def char_detokenize(self, tokens): method word_tokenize (line 158) | def word_tokenize(self, text): method word_detokenize (line 162) | def word_detokenize(self, tokens): method spm_tokenize (line 166) | def spm_tokenize(self, text): method spm_detokenize (line 198) | def spm_detokenize(self, tokens, input_format='piece'): method _load_vocabulary_from_file (line 218) | def _load_vocabulary_from_file(self, vocab: Union[str, list], FILE: paddlespeech/s2t/frontend/normalizer.py class CollateFunc (line 33) | class CollateFunc(object): method __init__ (line 34) | def __init__(self, feature_func): method __call__ (line 37) | def __call__(self, batch): class AudioDataset (line 61) | class AudioDataset(Dataset): method __init__ (line 62) | def __init__(self, manifest_path, num_samples=-1, rng=None, random_see... method __len__ (line 75) | def __len__(self): method __getitem__ (line 78) | def __getitem__(self, idx): class FeatureNormalizer (line 82) | class FeatureNormalizer(object): method __init__ (line 105) | def __init__(self, method apply (line 123) | def apply(self, features): method _read_mean_std_from_file (line 135) | def _read_mean_std_from_file(self, mean_std, eps=1e-20): method write_to_file (line 146) | def write_to_file(self, filepath): method _compute_mean_std (line 155) | def _compute_mean_std(self, FILE: paddlespeech/s2t/frontend/speech.py class SpeechSegment (line 20) | class SpeechSegment(AudioSegment): method __init__ (line 27) | def __init__(self, method __eq__ (line 49) | def __eq__(self, other): method __ne__ (line 66) | def __ne__(self, other): method from_file (line 71) | def from_file(cls, method from_bytes (line 94) | def from_bytes(cls, bytes, transcript, tokens=None, token_ids=None): method from_pcm (line 111) | def from_pcm(cls, method concatenate (line 132) | def concatenate(cls, *segments): method slice_from_file (line 165) | def slice_from_file(cls, method make_silence (line 197) | def make_silence(cls, duration, sample_rate): method has_token (line 212) | def has_token(self): method transcript (line 218) | def transcript(self): method tokens (line 228) | def tokens(self): method token_ids (line 237) | def token_ids(self): FILE: paddlespeech/s2t/frontend/utility.py function load_dict (line 47) | def load_dict(dict_path: Optional[Text], maskctc=False) -> Optional[List... function read_manifest (line 68) | def read_manifest( function parse_tar (line 127) | def parse_tar(file): function subfile_from_tar (line 138) | def subfile_from_tar(file, local_data=None): function rms_to_db (line 168) | def rms_to_db(rms: float): function rms_to_dbfs (line 180) | def rms_to_dbfs(rms: float): function max_dbfs (line 198) | def max_dbfs(sample_data: np.ndarray): function mean_dbfs (line 211) | def mean_dbfs(sample_data): function gain_db_to_ratio (line 224) | def gain_db_to_ratio(gain_db: float): function normalize_audio (line 236) | def normalize_audio(sample_data: np.ndarray, dbfs: float=-3.0103): function _load_json_cmvn (line 251) | def _load_json_cmvn(json_cmvn_file): function _load_kaldi_cmvn (line 276) | def _load_kaldi_cmvn(kaldi_cmvn_file): function load_cmvn (line 318) | def load_cmvn(cmvn_file: str, filetype: str): function convert_samples_to_float32 (line 349) | def convert_samples_to_float32(samples): function convert_samples_from_float32 (line 368) | def convert_samples_from_float32(samples, dtype): FILE: paddlespeech/s2t/io/batchfy.py function batchfy_by_seq (line 26) | def batchfy_by_seq( function batchfy_by_bin (line 103) | def batchfy_by_bin( function batchfy_by_frame (line 185) | def batchfy_by_frame( function batchfy_shuffle (line 281) | def batchfy_shuffle(data, batch_size, min_batch_size, num_batches, function make_batchset (line 321) | def make_batchset( FILE: paddlespeech/s2t/io/collator.py function _tokenids (line 33) | def _tokenids(text, keep_transcription_text): class SpeechCollatorBase (line 46) | class SpeechCollatorBase(): method __init__ (line 47) | def __init__( method process_utterance (line 133) | def process_utterance(self, audio_file, transcript): method __call__ (line 174) | def __call__(self, batch): class SpeechCollator (line 219) | class SpeechCollator(SpeechCollatorBase): method from_config (line 221) | def from_config(cls, config): class TripletSpeechCollator (line 270) | class TripletSpeechCollator(SpeechCollator): method process_utterance (line 271) | def process_utterance(self, audio_file, translation, transcript): method __call__ (line 288) | def __call__(self, batch): FILE: paddlespeech/s2t/io/converter.py class CustomConverter (line 25) | class CustomConverter(): method __init__ (line 34) | def __init__(self, method __call__ (line 46) | def __call__(self, batch): FILE: paddlespeech/s2t/io/dataloader.py function feat_dim_and_vocab_size (line 40) | def feat_dim_and_vocab_size(data_json: List[Dict[Text, Any]], function batch_collate (line 52) | def batch_collate(x): function read_preprocess_cfg (line 64) | def read_preprocess_cfg(preprocess_conf_file): class StreamDataLoader (line 88) | class StreamDataLoader(): method __init__ (line 89) | def __init__(self, method __iter__ (line 195) | def __iter__(self): method __call__ (line 198) | def __call__(self): method __len__ (line 201) | def __len__(self): class BatchDataLoader (line 208) | class BatchDataLoader(): method __init__ (line 209) | def __init__(self, method __len__ (line 320) | def __len__(self): method __iter__ (line 323) | def __iter__(self): method __call__ (line 326) | def __call__(self): method __repr__ (line 329) | def __repr__(self): class DataLoaderFactory (line 352) | class DataLoaderFactory(): method get_dataloader (line 354) | def get_dataloader(mode: str, config, args): FILE: paddlespeech/s2t/io/dataset.py class ManifestDataset (line 28) | class ManifestDataset(Dataset): method from_config (line 30) | def from_config(cls, config): method __init__ (line 52) | def __init__(self, method __len__ (line 91) | def __len__(self): method __getitem__ (line 94) | def __getitem__(self, idx): class TransformDataset (line 98) | class TransformDataset(Dataset): method __init__ (line 107) | def __init__(self, data, converter, reader): method __len__ (line 114) | def __len__(self): method __getitem__ (line 118) | def __getitem__(self, idx): class AudioDataset (line 123) | class AudioDataset(Dataset): method __init__ (line 124) | def __init__(self, method __len__ (line 226) | def __len__(self): method __getitem__ (line 230) | def __getitem__(self, idx): FILE: paddlespeech/s2t/io/reader.py class LoadInputsAndTargets (line 34) | class LoadInputsAndTargets(): method __init__ (line 60) | def __init__( method __call__ (line 95) | def __call__(self, batch, return_uttid=False): method _create_batch_asr (line 167) | def _create_batch_asr(self, x_feats_dict, y_feats_dict, uttid_list): method _get_from_loader (line 228) | def _get_from_loader(self, filepath, filetype): method file_type (line 328) | def file_type(self, filepath): class SoundHDF5File (line 332) | class SoundHDF5File(): method __init__ (line 348) | def __init__(self, method __repr__ (line 370) | def __repr__(self): method create_dataset (line 374) | def create_dataset(self, name, shape=None, data=None, **kwds): method __setitem__ (line 381) | def __setitem__(self, name, data): method __getitem__ (line 384) | def __getitem__(self, key): method keys (line 390) | def keys(self): method values (line 393) | def values(self): method items (line 397) | def items(self): method __iter__ (line 401) | def __iter__(self): method __contains__ (line 404) | def __contains__(self, item): method __len__ (line 407) | def __len__(self): method __enter__ (line 410) | def __enter__(self): method __exit__ (line 413) | def __exit__(self, exc_type, exc_val, exc_tb): method close (line 416) | def close(self): FILE: paddlespeech/s2t/io/sampler.py function _batch_shuffle (line 31) | def _batch_shuffle(indices, batch_size, epoch, clipped=False): class SortagradDistributedBatchSampler (line 70) | class SortagradDistributedBatchSampler(DistributedBatchSampler): method __init__ (line 71) | def __init__(self, method __iter__ (line 97) | def __iter__(self): method __len__ (line 166) | def __len__(self): class SortagradBatchSampler (line 172) | class SortagradBatchSampler(BatchSampler): method __init__ (line 173) | def __init__(self, method __iter__ (line 208) | def __iter__(self): method __len__ (line 248) | def __len__(self): FILE: paddlespeech/s2t/io/speechbrain/batch.py class PaddedBatch (line 32) | class PaddedBatch: method __init__ (line 62) | def __init__( method __len__ (line 95) | def __len__(self): method __getitem__ (line 98) | def __getitem__(self, key): method __iter__ (line 104) | def __iter__(self): FILE: paddlespeech/s2t/io/speechbrain/data_pipeline.py class StaticItem (line 29) | class StaticItem: class DynamicItem (line 39) | class DynamicItem: method __init__ (line 63) | def __init__(self, takes=[], func=None, provides=[]): method __call__ (line 68) | def __call__(self, *args): method next_takes (line 72) | def next_takes(self): method next_provides (line 77) | def next_provides(self): method provided_in_order (line 82) | def provided_in_order(self): method reset (line 89) | def reset(self): class GeneratorDynamicItem (line 96) | class GeneratorDynamicItem(DynamicItem): method __init__ (line 115) | def __init__(self, *args, **kwargs): method __call__ (line 122) | def __call__(self, *args): method next_takes (line 132) | def next_takes(self): method next_provides (line 139) | def next_provides(self): method provided_in_order (line 149) | def provided_in_order(self): method reset (line 163) | def reset(self): function takes (line 172) | def takes(*argkeys): function provides (line 214) | def provides(*output_keys): class DataPipeline (line 269) | class DataPipeline: method __init__ (line 286) | def __init__(self, static_data_keys, dynamic_items=[], output_keys=[]): method add_static_keys (line 297) | def add_static_keys(self, static_keys): method add_dynamic_items (line 306) | def add_dynamic_items(self, dynamic_items): method add_dynamic_item (line 314) | def add_dynamic_item(self, func, takes=None, provides=None): method _add_dynamic_item_object (line 355) | def _add_dynamic_item_object(self, obj): method set_output_keys (line 390) | def set_output_keys(self, keys): method _output_keys_to_mapping (line 410) | def _output_keys_to_mapping(keys): method compute_outputs (line 420) | def compute_outputs(self, data): method compute_specific (line 436) | def compute_specific(self, keys, data): method _compute (line 443) | def _compute(self, data, order, output_mapping): method get_selected_node_ids (line 478) | def get_selected_node_ids(self, selected_keys): method __call__ (line 482) | def __call__(self, data): method _prepare_run (line 485) | def _prepare_run(self, data): FILE: paddlespeech/s2t/io/speechbrain/data_utils.py function batch_pad_right (line 30) | def batch_pad_right(array: list, mode="constant", value=0): function pad_right_to (line 91) | def pad_right_to( function mod_default_collate (line 135) | def mod_default_collate(batch): FILE: paddlespeech/s2t/io/speechbrain/dataio.py function load_data_json (line 42) | def load_data_json(json_path, replacements={}): function _recursive_format (line 66) | def _recursive_format(data, replacements): function load_data_csv (line 87) | def load_data_csv(csv_path, replacements={}): function read_audio (line 141) | def read_audio(waveforms_obj): function read_audio_multichannel (line 182) | def read_audio_multichannel(waveforms_obj): function write_audio (line 248) | def write_audio(filepath, audio, samplerate): function load_pickle (line 270) | def load_pickle(pickle_path): function to_floatTensor (line 288) | def to_floatTensor(x: (list, tuple, np.ndarray)): function to_doubleTensor (line 303) | def to_doubleTensor(x: (list, tuple, np.ndarray)): function to_longTensor (line 318) | def to_longTensor(x: (list, tuple, np.ndarray)): function convert_index_to_lab (line 333) | def convert_index_to_lab(batch, ind2lab): function relative_time_to_absolute (line 352) | def relative_time_to_absolute(batch, relative_lens, rate): class IterativeCSVWriter (line 380) | class IterativeCSVWriter: method __init__ (line 392) | def __init__(self, outstream, data_fields, defaults={}): method set_default (line 398) | def set_default(self, field, value): method write (line 412) | def write(self, *args, **kwargs): method write_batch (line 439) | def write_batch(self, *args, **kwargs): method _expand_data_fields (line 469) | def _expand_data_fields(data_fields): function write_txt_file (line 478) | def write_txt_file(data, filename, sampling_rate=None): function write_stdout (line 510) | def write_stdout(data, filename=None, sampling_rate=None): function length_to_mask (line 540) | def length_to_mask(length, max_len=None, dtype=None, device=None): function read_kaldi_lab (line 577) | def read_kaldi_lab(kaldi_ali, kaldi_lab_opts): function get_md5 (line 615) | def get_md5(file): function save_md5 (line 641) | def save_md5(files, out_file): function save_pkl (line 664) | def save_pkl(obj, file): function load_pkl (line 681) | def load_pkl(file): function prepend_bos_token (line 715) | def prepend_bos_token(label, bos_index): function append_eos_token (line 739) | def append_eos_token(label, length, eos_index): function merge_char (line 768) | def merge_char(sequences, space="_"): function merge_csvs (line 790) | def merge_csvs(data_folder, csv_lst, merged_csv): function split_word (line 826) | def split_word(sequences, space="_"): FILE: paddlespeech/s2t/io/speechbrain/dataloader.py class Wav2vec2DataLoader (line 42) | class Wav2vec2DataLoader(DataLoader): method __init__ (line 43) | def __init__(self, function PaddedBatch (line 81) | def PaddedBatch( function make_dataloader (line 117) | def make_dataloader(dataset, stage, **loader_kwargs): FILE: paddlespeech/s2t/io/speechbrain/dataset.py class DynamicItemDataset (line 31) | class DynamicItemDataset(Dataset): method __init__ (line 101) | def __init__( method __len__ (line 116) | def __len__(self): method __getitem__ (line 119) | def __getitem__(self, index): method add_dynamic_item (line 124) | def add_dynamic_item(self, func, takes=None, provides=None): method set_output_keys (line 150) | def set_output_keys(self, keys): method output_keys_as (line 168) | def output_keys_as(self, keys): method filtered_sorted (line 181) | def filtered_sorted( method _filtered_sorted_ids (line 238) | def _filtered_sorted_ids( method from_json (line 296) | def from_json(cls, method from_csv (line 306) | def from_csv(cls, method from_arrow_dataset (line 316) | def from_arrow_dataset(cls, class FilteredSortedDynamicItemDataset (line 333) | class FilteredSortedDynamicItemDataset(DynamicItemDataset): method __init__ (line 340) | def __init__(self, from_dataset, data_ids): method from_json (line 346) | def from_json(cls, method from_csv (line 354) | def from_csv(cls, function add_dynamic_item (line 362) | def add_dynamic_item(datasets, func, takes=None, provides=None): function set_output_keys (line 368) | def set_output_keys(datasets, output_keys): FILE: paddlespeech/s2t/io/speechbrain/depgraph.py class CircularDependencyError (line 26) | class CircularDependencyError(ValueError): class DependencyGraph (line 40) | class DependencyGraph: method __init__ (line 60) | def __init__(self): method get_unique_key (line 67) | def get_unique_key(): method add_node (line 71) | def add_node(self, key=None, data=None): method add_edge (line 108) | def add_edge(self, from_key, to_key): method _get_ind_and_add_if_new (line 131) | def _get_ind_and_add_if_new(self, key): method is_valid (line 138) | def is_valid(self): method get_evaluation_order (line 151) | def get_evaluation_order(self, selected_keys=None): method _find_first_cycle (line 207) | def _find_first_cycle(self): method __contains__ (line 234) | def __contains__(self, key): FILE: paddlespeech/s2t/io/speechbrain/make_dataloader.py function _train_loader_specifics (line 20) | def _train_loader_specifics(self, dataset, loader_kwargs): function make_dataloader (line 73) | def make_dataloader(self, dataset, stage, **loader_kwargs): FILE: paddlespeech/s2t/io/speechbrain/sampler.py class ReproducibleRandomSampler (line 44) | class ReproducibleRandomSampler(RandomSampler): method __init__ (line 68) | def __init__(self, data_source, seed=563375142, epoch=0, **kwargs): method set_epoch (line 78) | def set_epoch(self, epoch): method __iter__ (line 85) | def __iter__(self): class ReproducibleWeightedRandomSampler (line 90) | class ReproducibleWeightedRandomSampler(WeightedRandomSampler): method __init__ (line 117) | def __init__( method set_epoch (line 134) | def set_epoch(self, epoch): method __iter__ (line 141) | def __iter__(self): class DynamicBatchSampler (line 146) | class DynamicBatchSampler(Sampler): method __init__ (line 188) | def __init__( method get_durations (line 265) | def get_durations(self, batch): method _get_boundaries_through_warping (line 269) | def _get_boundaries_through_warping( method _permute_batches (line 301) | def _permute_batches(self): method _generate_batches (line 326) | def _generate_batches(self): method __iter__ (line 437) | def __iter__(self): method set_epoch (line 446) | def set_epoch(self, epoch): method __len__ (line 454) | def __len__(self): class BalancingDataSampler (line 458) | class BalancingDataSampler(ReproducibleWeightedRandomSampler): method __init__ (line 480) | def __init__( method _compute_weights (line 497) | def _compute_weights(self): FILE: paddlespeech/s2t/io/speechbrain/sb_pipeline.py function dataio_prepare (line 29) | def dataio_prepare(hparams): FILE: paddlespeech/s2t/io/utility.py function pad_list (line 26) | def pad_list(sequences: List[np.ndarray], function pad_sequence (line 31) | def pad_sequence(sequences: List[np.ndarray], function feat_type (line 91) | def feat_type(filepath): FILE: paddlespeech/s2t/models/asr_interface.py class ASRInterface (line 21) | class ASRInterface: method add_arguments (line 25) | def add_arguments(parser): method build (line 30) | def build(cls, idim: int, odim: int, **kwargs): method forward (line 44) | def forward(self, xs, ilens, ys, olens): method recognize (line 56) | def recognize(self, x, recog_args, char_list=None, rnnlm=None): method recognize_batch (line 68) | def recognize_batch(self, x, recog_args, char_list=None, rnnlm=None): method calculate_all_attentions (line 80) | def calculate_all_attentions(self, xs, ilens, ys): method calculate_all_ctc_probs (line 92) | def calculate_all_ctc_probs(self, xs, ilens, ys): method attention_plot_class (line 105) | def attention_plot_class(self): method ctc_plot_class (line 112) | def ctc_plot_class(self): method get_total_subsampling_factor (line 118) | def get_total_subsampling_factor(self): method encode (line 123) | def encode(self, feat): method scorers (line 133) | def scorers(self): function dynamic_import_asr (line 149) | def dynamic_import_asr(module): FILE: paddlespeech/s2t/models/ds2/conv.py class Conv2dSubsampling4Pure (line 19) | class Conv2dSubsampling4Pure(Conv2dSubsampling4): method __init__ (line 20) | def __init__(self, idim: int, odim: int, dropout_rate: float): method forward (line 26) | def forward(self, x: paddle.Tensor, FILE: paddlespeech/s2t/models/ds2/deepspeech2.py class CRNNEncoder (line 29) | class CRNNEncoder(nn.Layer): method __init__ (line 30) | def __init__(self, method output_size (line 93) | def output_size(self): method forward (line 96) | def forward(self, x, x_lens, init_state_h_box=None, init_state_c_box=N... method forward_chunk_by_chunk (line 157) | def forward_chunk_by_chunk(self, x, x_lens, decoder_chunk_size=8): class DeepSpeech2Model (line 214) | class DeepSpeech2Model(nn.Layer): method __init__ (line 244) | def __init__( method forward (line 278) | def forward(self, audio, audio_len, text, text_len): method decode (line 296) | def decode(self, audio, audio_len): method from_pretrained (line 309) | def from_pretrained(cls, dataloader, config, checkpoint_path): method from_config (line 345) | def from_config(cls, config): class DeepSpeech2InferModel (line 371) | class DeepSpeech2InferModel(DeepSpeech2Model): method __init__ (line 372) | def __init__(self, *args, **kwargs): method forward (line 375) | def forward(self, method export (line 393) | def export(self): FILE: paddlespeech/s2t/models/hubert/hubert_ASR.py class HubertASR (line 41) | class HubertASR(nn.Layer): method __init__ (line 42) | def __init__(self, config: dict): method merge_with_parent (line 69) | def merge_with_parent(self, dc: dataclass, cfg: dict): method forward (line 84) | def forward(self, wav, wavs_lens_rate, target, target_lens): method decode (line 109) | def decode(self, method from_config (line 190) | def from_config(cls, config): method ctc_greedy_search (line 194) | def ctc_greedy_search(self, wav) -> List[List[int]]: method _ctc_prefix_beam_search (line 222) | def _ctc_prefix_beam_search( method ctc_prefix_beam_search (line 305) | def ctc_prefix_beam_search(self, wav, beam_size) -> List[int]: class HubertBase (line 325) | class HubertBase(nn.Layer): method __init__ (line 328) | def __init__(self, config: dict): method from_config (line 339) | def from_config(cls, configs: dict): method merge_with_parent (line 351) | def merge_with_parent(self, dc: dataclass, cfg: dict): method forward (line 366) | def forward(self, wav): FILE: paddlespeech/s2t/models/hubert/modules/hubert_model.py class HubertPretrainingConfig (line 46) | class HubertPretrainingConfig: class HubertConfig (line 84) | class HubertConfig: class HubertModel (line 263) | class HubertModel(nn.Layer): method __init__ (line 264) | def __init__( method build_model (line 342) | def build_model(cls, cfg: HubertConfig, task): method apply_mask (line 348) | def apply_mask(self, x, padding_mask, target_list): method compute_nce (line 385) | def compute_nce(self, x, pos, negs): method forward_features (line 398) | def forward_features(self, source: paddle.Tensor) -> paddle.Tensor: method forward_targets (line 408) | def forward_targets( method forward_padding_mask (line 424) | def forward_padding_mask( method forward (line 436) | def forward( method extract_features (line 540) | def extract_features( method get_logits (line 557) | def get_logits(self, net_output, is_masked=True): method get_targets (line 567) | def get_targets(self, net_output, is_masked=True): method get_extra_losses (line 574) | def get_extra_losses(self, net_output): method remove_pretraining_modules (line 584) | def remove_pretraining_modules(self): FILE: paddlespeech/s2t/models/lm/dataset.py class TextDataset (line 21) | class TextDataset(Dataset): method from_file (line 23) | def from_file(cls, file_path): method __init__ (line 27) | def __init__(self, file_path): method __len__ (line 33) | def __len__(self): method __getitem__ (line 36) | def __getitem__(self, idx): class TextCollatorSpm (line 40) | class TextCollatorSpm(): method __init__ (line 41) | def __init__(self, unit_type, vocab_filepath, spm_model_prefix): method __call__ (line 50) | def __call__(self, batch): FILE: paddlespeech/s2t/models/lm/transformer.py class TransformerLM (line 33) | class TransformerLM(nn.Layer, LMInterface, BatchScorerInterface): method __init__ (line 34) | def __init__(self, method _target_mask (line 91) | def _target_mask(self, ys_in_pad): method forward (line 96) | def forward(self, x: paddle.Tensor, t: paddle.Tensor method score (line 137) | def score(self, y: paddle.Tensor, state: Any, method batch_score (line 166) | def batch_score(self, FILE: paddlespeech/s2t/models/lm_interface.py class LMInterface (line 22) | class LMInterface(ScorerInterface): method add_arguments (line 26) | def add_arguments(parser): method build (line 31) | def build(cls, n_vocab: int, **kwargs): method forward (line 44) | def forward(self, x, t): function dynamic_import_lm (line 70) | def dynamic_import_lm(module): FILE: paddlespeech/s2t/models/st_interface.py class STInterface (line 20) | class STInterface(ASRInterface): method translate (line 28) | def translate(self, method translate_batch (line 45) | def translate_batch(self, x, trans_args, char_list=None, rnnlm=None): function dynamic_import_st (line 63) | def dynamic_import_st(module): FILE: paddlespeech/s2t/models/u2/u2.py class U2BaseModel (line 66) | class U2BaseModel(ASRInterface, nn.Layer): method __init__ (line 69) | def __init__(self, method forward (line 101) | def forward( method _calc_att_loss (line 156) | def _calc_att_loss(self, method _forward_encoder (line 198) | def _forward_encoder( method recognize (line 237) | def recognize( method ctc_greedy_search (line 347) | def ctc_greedy_search( method _ctc_prefix_beam_search (line 393) | def _ctc_prefix_beam_search( method ctc_prefix_beam_search (line 480) | def ctc_prefix_beam_search( method attention_rescoring (line 508) | def attention_rescoring(self, method subsampling_rate (line 615) | def subsampling_rate(self) -> int: method right_context (line 622) | def right_context(self) -> int: method sos_symbol (line 628) | def sos_symbol(self) -> int: method eos_symbol (line 634) | def eos_symbol(self) -> int: method is_bidirectional_decoder (line 640) | def is_bidirectional_decoder(self) -> bool: method forward_encoder_chunk (line 651) | def forward_encoder_chunk( method ctc_activation (line 694) | def ctc_activation(self, xs: paddle.Tensor) -> paddle.Tensor: method forward_attention_decoder (line 705) | def forward_attention_decoder(self, method decode (line 745) | def decode(self, class U2DecodeModel (line 839) | class U2DecodeModel(U2BaseModel): method scorers (line 840) | def scorers(self): method encode (line 845) | def encode(self, x): class U2Model (line 859) | class U2Model(U2DecodeModel): method __init__ (line 860) | def __init__(self, configs: dict): method _init_from_config (line 874) | def _init_from_config(cls, configs: dict): method from_config (line 950) | def from_config(cls, configs: dict): method from_pretrained (line 966) | def from_pretrained(cls, dataloader, config, checkpoint_path): class U2InferModel (line 991) | class U2InferModel(U2Model): method __init__ (line 992) | def __init__(self, configs: dict): method forward (line 1038) | def forward(self, method forward_feature (line 1062) | def forward_feature(self, x): FILE: paddlespeech/s2t/models/u2/updater.py class U2Evaluator (line 29) | class U2Evaluator(StandardEvaluator): method __init__ (line 30) | def __init__(self, model, dataloader): method evaluate_core (line 36) | def evaluate_core(self, batch): class U2Updater (line 61) | class U2Updater(StandardUpdater): method __init__ (line 62) | def __init__(self, method update_core (line 76) | def update_core(self, batch): method update (line 134) | def update(self): FILE: paddlespeech/s2t/models/u2_st/u2_st.py class U2STBaseModel (line 49) | class U2STBaseModel(nn.Layer): method __init__ (line 52) | def __init__(self, method forward (line 85) | def forward( method _calc_st_loss (line 151) | def _calc_st_loss( method _calc_att_loss (line 184) | def _calc_att_loss( method _forward_encoder (line 217) | def _forward_encoder( method translate (line 256) | def translate( method subsampling_rate (line 370) | def subsampling_rate(self) -> int: method right_context (line 377) | def right_context(self) -> int: method sos_symbol (line 383) | def sos_symbol(self) -> int: method eos_symbol (line 389) | def eos_symbol(self) -> int: method forward_encoder_chunk (line 395) | def forward_encoder_chunk( method ctc_activation (line 438) | def ctc_activation(self, xs: paddle.Tensor) -> paddle.Tensor: method forward_attention_decoder (line 449) | def forward_attention_decoder( method decode (line 478) | def decode(self, class U2STModel (line 533) | class U2STModel(U2STBaseModel): method __init__ (line 534) | def __init__(self, configs: dict): method _init_from_config (line 554) | def _init_from_config(cls, configs: dict): method from_config (line 620) | def from_config(cls, configs: dict): method from_pretrained (line 636) | def from_pretrained(cls, dataloader, config, checkpoint_path): class U2STInferModel (line 661) | class U2STInferModel(U2STModel): method __init__ (line 662) | def __init__(self, configs: dict): method forward (line 665) | def forward(self, FILE: paddlespeech/s2t/models/wav2vec2/modules/VanillaNN.py class VanillaNN (line 24) | class VanillaNN(containers.Sequential): method __init__ (line 43) | def __init__(self, FILE: paddlespeech/s2t/models/wav2vec2/modules/activations.py class NewGELUActivation (line 24) | class NewGELUActivation(nn.Layer): method forward (line 30) | def forward(self, input: Tensor) -> Tensor: class GELUActivation (line 36) | class GELUActivation(nn.Layer): method __init__ (line 44) | def __init__(self, use_gelu_python: bool=False): method _gelu_python (line 48) | def _gelu_python(self, input: Tensor) -> Tensor: method forward (line 51) | def forward(self, input: Tensor) -> Tensor: class FastGELUActivation (line 55) | class FastGELUActivation(nn.Layer): method forward (line 60) | def forward(self, input: Tensor) -> Tensor: class QuickGELUActivation (line 66) | class QuickGELUActivation(nn.Layer): method forward (line 71) | def forward(self, input: Tensor) -> Tensor: class ClippedGELUActivation (line 75) | class ClippedGELUActivation(nn.Layer): method __init__ (line 88) | def __init__(self, min: float, max: float): method forward (line 97) | def forward(self, x: Tensor) -> Tensor: class SiLUActivation (line 101) | class SiLUActivation(nn.Layer): method __init__ (line 110) | def __init__(self): method _silu_python (line 114) | def _silu_python(self, input: Tensor) -> Tensor: method forward (line 117) | def forward(self, input: Tensor) -> Tensor: class MishActivation (line 121) | class MishActivation(nn.Layer): method __init__ (line 127) | def __init__(self): method _mish_python (line 131) | def _mish_python(self, input: Tensor) -> Tensor: method forward (line 134) | def forward(self, input: Tensor) -> Tensor: class LinearActivation (line 138) | class LinearActivation(nn.Layer): method forward (line 143) | def forward(self, input: Tensor) -> Tensor: function get_activation (line 164) | def get_activation(activation_string): FILE: paddlespeech/s2t/models/wav2vec2/modules/containers.py class Sequential (line 22) | class Sequential(paddle.nn.LayerDict): method __init__ (line 51) | def __init__(self, *layers, input_shape=None, **named_layers): method append (line 83) | def append(self, layer, *args, layer_name=None, **kwargs): method get_output_shape (line 123) | def get_output_shape(self): method forward (line 133) | def forward(self, x): FILE: paddlespeech/s2t/models/wav2vec2/modules/linear.py class Linear (line 27) | class Linear(paddle.nn.Layer): method __init__ (line 51) | def __init__( method forward (line 72) | def forward(self, x): FILE: paddlespeech/s2t/models/wav2vec2/modules/modeling_outputs.py class ModelOutput (line 24) | class ModelOutput(OrderedDict): method __post_init__ (line 38) | def __post_init__(self): method __delitem__ (line 83) | def __delitem__(self, *args, **kwargs): method setdefault (line 88) | def setdefault(self, *args, **kwargs): method pop (line 93) | def pop(self, *args, **kwargs): method update (line 97) | def update(self, *args, **kwargs): method __getitem__ (line 102) | def __getitem__(self, k): method __setattr__ (line 109) | def __setattr__(self, name, value): method __setitem__ (line 115) | def __setitem__(self, key, value): method to_tuple (line 121) | def to_tuple(self) -> Tuple: class BaseModelOutput (line 129) | class BaseModelOutput(ModelOutput): class BaseModelOutputWithNoAttention (line 155) | class BaseModelOutputWithNoAttention(ModelOutput): class BaseModelOutputWithPooling (line 174) | class BaseModelOutputWithPooling(ModelOutput): class BaseModelOutputWithPoolingAndNoAttention (line 206) | class BaseModelOutputWithPoolingAndNoAttention(ModelOutput): class BaseModelOutputWithPast (line 228) | class BaseModelOutputWithPast(ModelOutput): class BaseModelOutputWithCrossAttentions (line 267) | class BaseModelOutputWithCrossAttentions(ModelOutput): class BaseModelOutputWithPoolingAndCrossAttentions (line 300) | class BaseModelOutputWithPoolingAndCrossAttentions(ModelOutput): class BaseModelOutputWithPastAndCrossAttentions (line 349) | class BaseModelOutputWithPastAndCrossAttentions(ModelOutput): class Seq2SeqModelOutput (line 395) | class Seq2SeqModelOutput(ModelOutput): class CausalLMOutput (line 456) | class CausalLMOutput(ModelOutput): class CausalLMOutputWithPast (line 485) | class CausalLMOutputWithPast(ModelOutput): class CausalLMOutputWithCrossAttentions (line 521) | class CausalLMOutputWithCrossAttentions(ModelOutput): class SequenceClassifierOutputWithPast (line 565) | class SequenceClassifierOutputWithPast(ModelOutput): class MaskedLMOutput (line 601) | class MaskedLMOutput(ModelOutput): class Seq2SeqLMOutput (line 630) | class Seq2SeqLMOutput(ModelOutput): class NextSentencePredictorOutput (line 690) | class NextSentencePredictorOutput(ModelOutput): class SequenceClassifierOutput (line 720) | class SequenceClassifierOutput(ModelOutput): class Seq2SeqSequenceClassifierOutput (line 749) | class Seq2SeqSequenceClassifierOutput(ModelOutput): class MultipleChoiceModelOutput (line 809) | class MultipleChoiceModelOutput(ModelOutput): class TokenClassifierOutput (line 840) | class TokenClassifierOutput(ModelOutput): class QuestionAnsweringModelOutput (line 869) | class QuestionAnsweringModelOutput(ModelOutput): class Seq2SeqQuestionAnsweringModelOutput (line 901) | class Seq2SeqQuestionAnsweringModelOutput(ModelOutput): class SemanticSegmenterOutput (line 964) | class SemanticSegmenterOutput(ModelOutput): class ImageClassifierOutput (line 1002) | class ImageClassifierOutput(ModelOutput): class ImageClassifierOutputWithNoAttention (line 1030) | class ImageClassifierOutputWithNoAttention(ModelOutput): class DepthEstimatorOutput (line 1051) | class DepthEstimatorOutput(ModelOutput): class Wav2Vec2BaseModelOutput (line 1081) | class Wav2Vec2BaseModelOutput(ModelOutput): class XVectorOutput (line 1110) | class XVectorOutput(ModelOutput): FILE: paddlespeech/s2t/models/wav2vec2/modules/modeling_wav2vec2.py class Wav2Vec2ForPreTrainingOutput (line 34) | class Wav2Vec2ForPreTrainingOutput(ModelOutput): function _compute_mask_indices (line 75) | def _compute_mask_indices( function _sample_negative_indices (line 195) | def _sample_negative_indices(features_shape: Tuple, class Wav2Vec2NoLayerNormConvLayer (line 236) | class Wav2Vec2NoLayerNormConvLayer(nn.Layer): method __init__ (line 237) | def __init__(self, config, layer_id=0): method forward (line 250) | def forward(self, hidden_states): class Wav2Vec2LayerNormConvLayer (line 256) | class Wav2Vec2LayerNormConvLayer(nn.Layer): method __init__ (line 257) | def __init__(self, config, layer_id=0): method forward (line 271) | def forward(self, hidden_states): class Wav2Vec2GroupNormConvLayer (line 281) | class Wav2Vec2GroupNormConvLayer(nn.Layer): method __init__ (line 282) | def __init__(self, config, layer_id=0): method forward (line 298) | def forward(self, hidden_states): class Wav2Vec2PositionalConvEmbedding (line 305) | class Wav2Vec2PositionalConvEmbedding(nn.Layer): method __init__ (line 306) | def __init__(self, config): method forward (line 320) | def forward(self, hidden_states): class Wav2Vec2SamePadLayer (line 331) | class Wav2Vec2SamePadLayer(nn.Layer): method __init__ (line 332) | def __init__(self, num_conv_pos_embeddings): method forward (line 336) | def forward(self, hidden_states): class Wav2Vec2FeatureEncoder (line 342) | class Wav2Vec2FeatureEncoder(nn.Layer): method __init__ (line 345) | def __init__(self, config): method _freeze_parameters (line 365) | def _freeze_parameters(self): method forward (line 369) | def forward(self, input_values): class Wav2Vec2FeatureProjection (line 377) | class Wav2Vec2FeatureProjection(nn.Layer): method __init__ (line 378) | def __init__(self, config): method forward (line 385) | def forward(self, hidden_states): class Wav2Vec2Attention (line 394) | class Wav2Vec2Attention(nn.Layer): method __init__ (line 397) | def __init__( method _shape (line 422) | def _shape(self, tensor: paddle.Tensor, seq_len: int, bsz: int): method forward (line 426) | def forward( class Wav2Vec2FeedForward (line 550) | class Wav2Vec2FeedForward(nn.Layer): method __init__ (line 551) | def __init__(self, config): method forward (line 566) | def forward(self, hidden_states): class Wav2Vec2EncoderLayer (line 576) | class Wav2Vec2EncoderLayer(nn.Layer): method __init__ (line 577) | def __init__(self, config): method forward (line 591) | def forward(self, class Wav2Vec2EncoderLayerStableLayerNorm (line 615) | class Wav2Vec2EncoderLayerStableLayerNorm(nn.Layer): method __init__ (line 616) | def __init__(self, config): method forward (line 630) | def forward(self, class Wav2Vec2Encoder (line 653) | class Wav2Vec2Encoder(nn.Layer): method __init__ (line 654) | def __init__(self, config): method forward (line 667) | def forward( class Wav2Vec2EncoderStableLayerNorm (line 744) | class Wav2Vec2EncoderStableLayerNorm(nn.Layer): method __init__ (line 745) | def __init__(self, config): method forward (line 758) | def forward( class Wav2Vec2GumbelVectorQuantizer (line 836) | class Wav2Vec2GumbelVectorQuantizer(nn.Layer): method __init__ (line 842) | def __init__(self, config): method _compute_perplexity (line 867) | def _compute_perplexity(probs, mask=None): method forward (line 879) | def forward(self, hidden_states, mask_time_indices=None): class Wav2Vec2Adapter (line 927) | class Wav2Vec2Adapter(nn.Layer): method __init__ (line 928) | def __init__(self, config): method forward (line 943) | def forward(self, hidden_states): class Wav2Vec2AdapterLayer (line 960) | class Wav2Vec2AdapterLayer(nn.Layer): method __init__ (line 961) | def __init__(self, config): method forward (line 970) | def forward(self, hidden_states): class Wav2Vec2Model (line 977) | class Wav2Vec2Model(nn.Layer): method __init__ (line 978) | def __init__(self, config): method freeze_feature_encoder (line 1003) | def freeze_feature_encoder(self): method _mask_hidden_states (line 1010) | def _mask_hidden_states( method forward (line 1056) | def forward( method post_init (line 1105) | def post_init(self): class Wav2Vec2ConfigPure (line 1115) | class Wav2Vec2ConfigPure(): method __init__ (line 1118) | def __init__(self, config): method inputs_to_logits_ratio (line 1184) | def inputs_to_logits_ratio(self): FILE: paddlespeech/s2t/models/wav2vec2/modules/normalization.py class BatchNorm1d (line 24) | class BatchNorm1d(nn.Layer): method __init__ (line 53) | def __init__( method forward (line 72) | def forward(self, x): FILE: paddlespeech/s2t/models/wav2vec2/modules/wav2vec2_model.py class GLU (line 44) | class GLU(nn.Layer): method __init__ (line 64) | def __init__(self, axis: int=-1) -> None: method forward (line 68) | def forward(self, input: Tensor) -> Tensor: class FairseqIncrementalState (line 72) | class FairseqIncrementalState(object): method __init__ (line 73) | def __init__(self, *args, **kwargs): method init_incremental_state (line 77) | def init_incremental_state(self): method _get_full_incremental_state_key (line 80) | def _get_full_incremental_state_key(self, key: str) -> str: method get_incremental_state (line 83) | def get_incremental_state( method set_incremental_state (line 93) | def set_incremental_state( function with_incremental_state (line 106) | def with_incremental_state(cls): class FairseqDropout (line 112) | class FairseqDropout(paddle.nn.Layer): method __init__ (line 113) | def __init__(self, p, module_name=None): method forward (line 119) | def forward(self, x): method make_generation_fast_ (line 125) | def make_generation_fast_( function quant_noise (line 146) | def quant_noise(module, p, block_size): class MultiheadAttention (line 254) | class MultiheadAttention(nn.Layer): method __init__ (line 260) | def __init__( method prepare_for_onnx_export_ (line 394) | def prepare_for_onnx_export_(self): method reset_parameters (line 397) | def reset_parameters(self): method _get_reserve_head_index (line 421) | def _get_reserve_head_index(self, num_heads_to_keep: int): method _adaptive_prune_heads (line 460) | def _adaptive_prune_heads(self, reserve_head_index: List[Tuple[int, in... method _set_skip_embed_dim_check (line 541) | def _set_skip_embed_dim_check(self): method _pad_masks (line 544) | def _pad_masks( method _add_bias (line 568) | def _add_bias( method _append_zero_attn (line 584) | def _append_zero_attn( method forward (line 600) | def forward( method _append_prev_key_padding_mask (line 910) | def _append_prev_key_padding_mask( method reorder_incremental_state (line 958) | def reorder_incremental_state( method set_beam_size (line 989) | def set_beam_size(self, beam_size): method _get_input_buffer (line 993) | def _get_input_buffer( method _set_input_buffer (line 1004) | def _set_input_buffer( method apply_sparse_mask (line 1011) | def apply_sparse_mask(self, method upgrade_state_dict_named (line 1018) | def upgrade_state_dict_named(self, state_dict, name): class GumbelVectorQuantizer (line 1052) | class GumbelVectorQuantizer(nn.Layer): method __init__ (line 1053) | def __init__( method set_num_updates (line 1128) | def set_num_updates(self, num_updates): method get_codebook_indices (line 1132) | def get_codebook_indices(self): method codebook (line 1149) | def codebook(self): method sample_from_codebook (line 1154) | def sample_from_codebook(self, b, n): method to_codebook_index (line 1167) | def to_codebook_index(self, indices): method forward_idx (line 1174) | def forward_idx(self, x): method forward (line 1178) | def forward(self, x, produce_targets=False): class GradMultiply (line 1236) | class GradMultiply(paddle.autograd.PyLayer): method forward (line 1238) | def forward(ctx, x, scale): method backward (line 1244) | def backward(ctx, grad): class SamePad (line 1248) | class SamePad(nn.Layer): method __init__ (line 1249) | def __init__(self, kernel_size, causal=False): method forward (line 1256) | def forward(self, x): class TransposeLast (line 1262) | class TransposeLast(nn.Layer): method __init__ (line 1263) | def __init__(self, deconstruct_idx=None): method forward (line 1267) | def forward(self, x): class Fp32LayerNorm (line 1275) | class Fp32LayerNorm(LayerNorm): method __init__ (line 1276) | def __init__(self, *args, **kwargs): method forward (line 1279) | def forward(self, input): class Fp32GroupNorm (line 1290) | class Fp32GroupNorm(nn.Layer): method __init__ (line 1291) | def __init__(self, *args, **kwargs): method forward (line 1307) | def forward(self, input): class StrEnumMeta (line 1312) | class StrEnumMeta(EnumMeta): method __instancecheck__ (line 1316) | def __instancecheck__(cls, other): class StrEnum (line 1320) | class StrEnum(Enum, metaclass=StrEnumMeta): method __str__ (line 1321) | def __str__(self): method __eq__ (line 1324) | def __eq__(self, other: str): method __repr__ (line 1327) | def __repr__(self): method __hash__ (line 1330) | def __hash__(self): function ChoiceEnum (line 1334) | def ChoiceEnum(choices: List[str]): function relu_squared (line 1339) | def relu_squared(x: paddle.Tensor): function get_activation_fn (line 1343) | def get_activation_fn(activation: str) -> Callable: function get_available_activation_fns (line 1376) | def get_available_activation_fns() -> List: function compute_mask_indices (line 1387) | def compute_mask_indices( function index_put (line 1516) | def index_put(tensor, indices, value): function buffered_arange (line 1522) | def buffered_arange(max): function pad_to_multiple (line 1530) | def pad_to_multiple(x, multiple, dim=-1, value=0): class Wav2Vec2Config (line 1554) | class Wav2Vec2Config: class Wav2Vec2Model (line 1789) | class Wav2Vec2Model(nn.Layer): method __init__ (line 1790) | def __init__(self, cfg: Wav2Vec2Config): method upgrade_state_dict_named (line 1892) | def upgrade_state_dict_named(self, state_dict, name): method build_model (line 1898) | def build_model(cls, cfg: Wav2Vec2Config, task=None): method apply_mask (line 1902) | def apply_mask( method sample_negatives (line 1962) | def sample_negatives(self, y, num, padding_count=None): method compute_preds (line 2008) | def compute_preds(self, x, y, negatives): method _get_feat_extract_output_lengths (line 2019) | def _get_feat_extract_output_lengths(self, input_lengths: paddle.Tensor): method forward (line 2035) | def forward( method quantize (line 2208) | def quantize(self, x): method extract_features (line 2215) | def extract_features(self, source, padding_mask, mask=False, layer=None): method get_logits (line 2220) | def get_logits(self, net_output): method get_targets (line 2226) | def get_targets(self, sample, net_output, expand_steps=True): method get_extra_losses (line 2230) | def get_extra_losses(self, net_output): method remove_pretraining_modules (line 2242) | def remove_pretraining_modules(self, last_layer=None): class ConvFeatureExtractionModel (line 2253) | class ConvFeatureExtractionModel(nn.Layer): method __init__ (line 2254) | def __init__( method forward (line 2322) | def forward(self, x): function make_conv_pos (line 2332) | def make_conv_pos(e, k, g): class TransformerEncoder (line 2349) | class TransformerEncoder(nn.Layer): method build_encoder_layer (line 2350) | def build_encoder_layer(self, args: Wav2Vec2Config): method __init__ (line 2362) | def __init__(self, args: Wav2Vec2Config): method forward (line 2406) | def forward(self, x, padding_mask=None, layer=None): method extract_features (line 2413) | def extract_features( method max_positions (line 2477) | def max_positions(self): method upgrade_state_dict_named (line 2481) | def upgrade_state_dict_named(self, state_dict, name): class TransformerSentenceEncoderLayer (line 2486) | class TransformerSentenceEncoderLayer(nn.Layer): method __init__ (line 2492) | def __init__( method forward (line 2531) | def forward( class AudioPretrainingConfig (line 2594) | class AudioPretrainingConfig: FILE: paddlespeech/s2t/models/wav2vec2/processing/signal_processing.py function blackman_window (line 29) | def blackman_window(window_length, periodic=True): function compute_amplitude (line 54) | def compute_amplitude(waveforms, lengths=None, amp_type="avg", scale="li... function convolve1d (line 105) | def convolve1d( function notch_filter (line 203) | def notch_filter(notch_freq, filter_width=101, notch_width=0.05): FILE: paddlespeech/s2t/models/wav2vec2/processing/speech_augmentation.py class SpeedPerturb (line 38) | class SpeedPerturb(nn.Layer): method __init__ (line 66) | def __init__( method forward (line 87) | def forward(self, waveform): class Resample (line 110) | class Resample(nn.Layer): method __init__ (line 127) | def __init__( method _compute_strides (line 142) | def _compute_strides(self): method forward (line 157) | def forward(self, waveforms): method _perform_resample (line 196) | def _perform_resample(self, waveforms): method _output_samples (line 281) | def _output_samples(self, input_num_samp): method _indices_and_weights (line 334) | def _indices_and_weights(self, waveforms): class DropFreq (line 397) | class DropFreq(nn.Layer): method __init__ (line 427) | def __init__( method forward (line 443) | def forward(self, waveforms): class DropChunk (line 497) | class DropChunk(nn.Layer): method __init__ (line 540) | def __init__( method forward (line 575) | def forward(self, waveforms, lengths): class SpecAugment (line 654) | class SpecAugment(paddle.nn.Layer): method __init__ (line 689) | def __init__( method forward (line 724) | def forward(self, x): method time_warp (line 734) | def time_warp(self, x): method mask_along_axis (line 767) | def mask_along_axis(self, x, dim): class TimeDomainSpecAugment (line 817) | class TimeDomainSpecAugment(nn.Layer): method __init__ (line 861) | def __init__( method forward (line 890) | def forward(self, waveforms, lengths): FILE: paddlespeech/s2t/models/wav2vec2/wav2vec2_ASR.py class Wav2vec2ASR (line 36) | class Wav2vec2ASR(nn.Layer): method __init__ (line 37) | def __init__(self, config: dict): method forward (line 60) | def forward(self, wav, wavs_lens_rate, target, target_lens): method decode (line 84) | def decode(self, method from_config (line 165) | def from_config(cls, config): method ctc_greedy_search (line 169) | def ctc_greedy_search(self, wav) -> List[List[int]]: method _ctc_prefix_beam_search (line 197) | def _ctc_prefix_beam_search( method ctc_prefix_beam_search (line 280) | def ctc_prefix_beam_search(self, wav, beam_size) -> List[int]: class Wav2vec2Base (line 300) | class Wav2vec2Base(nn.Layer): method __init__ (line 303) | def __init__(self, config: dict): method from_config (line 310) | def from_config(cls, configs: dict): method forward (line 322) | def forward(self, wav): FILE: paddlespeech/s2t/models/wavlm/modules/activations.py function _gelu_python (line 22) | def _gelu_python(x): function gelu_new (line 34) | def gelu_new(x): function gelu_fast (line 43) | def gelu_fast(x): function _silu_python (line 49) | def _silu_python(x): function mish (line 60) | def mish(x): function linear_act (line 64) | def linear_act(x): function get_activation (line 82) | def get_activation(activation_string): FILE: paddlespeech/s2t/models/wavlm/modules/functional.py function _mha_shape_check (line 7) | def _mha_shape_check(query: paddle.Tensor, key: paddle.Tensor, value: pa... function scaled_dot_product_attention (line 53) | def scaled_dot_product_attention(q, k, v, attn_mask, dropout_p, is_causal): function addr (line 73) | def addr(input, vec1, vec2, beta=1, alpha=1, out=None): function multi_head_attention_forward (line 88) | def multi_head_attention_forward( function linear (line 123) | def linear(input, weight, bias=None): function _in_projection_packed (line 137) | def _in_projection_packed( function _in_projection (line 196) | def _in_projection( function multi_head_attention_forward_paddle (line 210) | def multi_head_attention_forward_paddle( FILE: paddlespeech/s2t/models/wavlm/modules/modules.py class TransposeLast (line 23) | class TransposeLast(nn.Layer): method __init__ (line 24) | def __init__(self, deconstruct_idx=None): method forward (line 28) | def forward(self, x): class Fp32LayerNorm (line 34) | class Fp32LayerNorm(nn.LayerNorm): method __init__ (line 35) | def __init__(self, *args, **kwargs): method forward (line 38) | def forward(self, input): class Fp32GroupNorm (line 48) | class Fp32GroupNorm(nn.GroupNorm): method __init__ (line 49) | def __init__(self, *args, **kwargs): method forward (line 52) | def forward(self, input): class SamePad (line 62) | class SamePad(nn.Layer): method __init__ (line 63) | def __init__(self, kernel_size, causal=False): method forward (line 70) | def forward(self, x): class Swish (line 76) | class Swish(nn.Layer): method __init__ (line 80) | def __init__(self): method forward (line 85) | def forward(self, x): class GLU_Linear (line 89) | class GLU_Linear(nn.Layer): method __init__ (line 90) | def __init__(self, method forward (line 114) | def forward(self, x): function gelu_accurate (line 128) | def gelu_accurate(x): function gelu (line 135) | def gelu(x: Tensor) -> Tensor: function get_activation_fn (line 139) | def get_activation_fn(activation: str): function quant_noise (line 163) | def quant_noise(module, p, block_size): class MultiheadAttention (line 259) | class MultiheadAttention(nn.Layer): method __init__ (line 265) | def __init__( method reset_parameters (line 353) | def reset_parameters(self): method _relative_positions_bucket (line 356) | def _relative_positions_bucket(self, relative_positions, method compute_bias (line 386) | def compute_bias(self, query_length, key_length): method forward (line 397) | def forward(self, method _append_prev_key_padding_mask (line 703) | def _append_prev_key_padding_mask( method _get_input_buffer (line 743) | def _get_input_buffer( method _set_input_buffer (line 754) | def _set_input_buffer( method apply_sparse_mask (line 761) | def apply_sparse_mask(self, FILE: paddlespeech/s2t/models/wavlm/wavlm_asr.py class WavLMASR (line 33) | class WavLMASR(nn.Layer): method __init__ (line 34) | def __init__(self, config: dict): method forward (line 58) | def forward(self, wav, wavs_lens_rate, target, target_lens): method decode (line 84) | def decode(self, method from_config (line 165) | def from_config(cls, config): method ctc_greedy_search (line 169) | def ctc_greedy_search(self, wav) -> List[List[int]]: method _ctc_prefix_beam_search (line 197) | def _ctc_prefix_beam_search( method ctc_prefix_beam_search (line 280) | def ctc_prefix_beam_search(self, wav, beam_size) -> List[int]: class WavLMBase (line 300) | class WavLMBase(nn.Layer): method __init__ (line 303) | def __init__(self, config: dict): method from_config (line 310) | def from_config(cls, configs: dict): method forward (line 322) | def forward(self, wav): FILE: paddlespeech/s2t/models/wavlm/wavlm_paddle.py function compute_mask_indices (line 31) | def compute_mask_indices( class WavLMConfig (line 151) | class WavLMConfig: method __init__ (line 152) | def __init__(self, cfg=None): method update (line 205) | def update(self, cfg: dict): class WavLM (line 209) | class WavLM(nn.Layer): method __init__ (line 210) | def __init__( method apply_mask (line 256) | def apply_mask(self, x, padding_mask): method forward_padding_mask (line 293) | def forward_padding_mask( method extract_features (line 305) | def extract_features( method forward (line 362) | def forward(self, x): class ConvFeatureExtractionModel (line 366) | class ConvFeatureExtractionModel(nn.Layer): method __init__ (line 367) | def __init__(self, method forward (line 466) | def forward(self, x, mask=None): class TransformerEncoder (line 490) | class TransformerEncoder(nn.Layer): method __init__ (line 491) | def __init__(self, args): method forward (line 551) | def forward(self, x, padding_mask=None, streaming_mask=None, layer=None): method extract_features (line 560) | def extract_features(self, class TransformerSentenceEncoderLayer (line 612) | class TransformerSentenceEncoderLayer(nn.Layer): method __init__ (line 618) | def __init__( method forward (line 673) | def forward(self, FILE: paddlespeech/s2t/models/whisper/tokenizer.py class Tokenizer (line 141) | class Tokenizer: method __post_init__ (line 151) | def __post_init__(self): method encode (line 169) | def encode(self, text, **kwargs): method decode (line 172) | def decode(self, token_ids: List[int], **kwargs) -> str: method decode_with_timestamps (line 176) | def decode_with_timestamps(self, token_ids: List[int], **kwargs) -> str: method eot (line 184) | def eot(self) -> int: method transcribe (line 188) | def transcribe(self) -> int: method translate (line 192) | def translate(self) -> int: method sot (line 196) | def sot(self) -> int: method sot_lm (line 200) | def sot_lm(self) -> int: method sot_prev (line 204) | def sot_prev(self) -> int: method no_speech (line 208) | def no_speech(self) -> int: method no_timestamps (line 212) | def no_timestamps(self) -> int: method timestamp_begin (line 216) | def timestamp_begin(self) -> int: method language_token (line 220) | def language_token(self) -> int: method to_language_token (line 228) | def to_language_token(self, language): method all_language_tokens (line 235) | def all_language_tokens(self) -> Tuple[int]: method all_language_codes (line 243) | def all_language_codes(self) -> Tuple[str]: method sot_sequence_including_notimestamps (line 248) | def sot_sequence_including_notimestamps(self) -> Tuple[int]: method non_speech_tokens (line 252) | def non_speech_tokens(self) -> Tuple[int]: method split_to_word_tokens (line 287) | def split_to_word_tokens(self, tokens: List[int]): method split_tokens_on_unicode (line 296) | def split_tokens_on_unicode(self, tokens: List[int]): method split_tokens_on_spaces (line 319) | def split_tokens_on_spaces(self, tokens: List[int]): function get_encoding (line 339) | def get_encoding(resource_path: str, name: str="gpt2", num_languages: in... function get_tokenizer (line 372) | def get_tokenizer( FILE: paddlespeech/s2t/models/whisper/utils.py function exact_div (line 10) | def exact_div(x, y): function str2bool (line 15) | def str2bool(string): function optional_int (line 23) | def optional_int(string): function optional_float (line 27) | def optional_float(string): function compression_ratio (line 31) | def compression_ratio(text) -> float: function format_timestamp (line 35) | def format_timestamp(seconds: float, function write_txt (line 54) | def write_txt(transcript: Iterator[dict], file: TextIO): function write_vtt (line 59) | def write_vtt(transcript: Iterator[dict], file: TextIO): function write_srt (line 69) | def write_srt(transcript: Iterator[dict], file: TextIO): FILE: paddlespeech/s2t/models/whisper/whisper.py class ModelDimensions (line 50) | class ModelDimensions: class LayerNorm (line 63) | class LayerNorm(paddlespeech_nn.LayerNorm): method forward (line 64) | def forward(self, x: paddle.Tensor) -> paddle.Tensor: class Linear (line 68) | class Linear(paddlespeech_nn.Linear): method forward (line 69) | def forward(self, x: paddle.Tensor) -> paddle.Tensor: class Conv1d (line 74) | class Conv1d(paddlespeech_nn.Conv1D): method forward (line 75) | def forward(self, x: paddle.Tensor) -> paddle.Tensor: class MultiHeadAttention (line 79) | class MultiHeadAttention(nn.Layer): method __init__ (line 80) | def __init__(self, n_state: int, n_head: int): method forward (line 88) | def forward( method qkv_attention (line 109) | def qkv_attention(self, class ResidualAttentionBlock (line 131) | class ResidualAttentionBlock(nn.Layer): method __init__ (line 132) | def __init__(self, n_state: int, n_head: int, cross_attention: bool=Fa... method forward (line 148) | def forward( function sinusoids (line 162) | def sinusoids(length, channels, max_timescale=10000): class AudioEncoder (line 176) | class AudioEncoder(nn.Layer): method __init__ (line 177) | def __init__(self, method forward (line 199) | def forward(self, x: paddle.Tensor): class TextDecoder (line 219) | class TextDecoder(nn.Layer): method __init__ (line 220) | def __init__(self, method forward (line 243) | def forward(self, class DecodingOptions (line 268) | class DecodingOptions: class DecodingResult (line 307) | class DecodingResult: class Inference (line 319) | class Inference: method logits (line 320) | def logits(self, tokens: paddle.Tensor, method rearrange_kv_cache (line 325) | def rearrange_kv_cache(self, source_indices) -> None: method cleanup_caching (line 329) | def cleanup_caching(self) -> None: class WhisperInference (line 334) | class WhisperInference(Inference): method __init__ (line 335) | def __init__(self, model: "Whisper", initial_token_length: int): method logits (line 341) | def logits(self, tokens: paddle.Tensor, method cleanup_caching (line 353) | def cleanup_caching(self): method rearrange_kv_cache (line 360) | def rearrange_kv_cache(self, source_indices): function detect_language (line 367) | def detect_language( function transcribe (line 427) | def transcribe( class SequenceRanker (line 795) | class SequenceRanker: method rank (line 796) | def rank(self, class MaximumLikelihoodRanker (line 806) | class MaximumLikelihoodRanker(SequenceRanker): method __init__ (line 812) | def __init__(self, length_penalty: Optional[float]): method rank (line 815) | def rank(self, class TokenDecoder (line 834) | class TokenDecoder: method reset (line 835) | def reset(self): method update (line 838) | def update(self, method finalize (line 866) | def finalize( class GreedyDecoder (line 891) | class GreedyDecoder(TokenDecoder): method __init__ (line 892) | def __init__(self, temperature: float, eot: int): method update (line 896) | def update(self, method finalize (line 921) | def finalize(self, tokens: paddle.Tensor, sum_logprobs: paddle.Tensor): class BeamSearchDecoder (line 927) | class BeamSearchDecoder(TokenDecoder): method __init__ (line 928) | def __init__(self, method reset (line 942) | def reset(self): method update (line 945) | def update(self, method finalize (line 1014) | def finalize(self, class LogitFilter (line 1038) | class LogitFilter: method apply (line 1039) | def apply(self, logits: paddle.Tensor, tokens: paddle.Tensor) -> None: class SuppressBlank (line 1054) | class SuppressBlank(LogitFilter): method __init__ (line 1055) | def __init__(self, tokenizer: Tokenizer, sample_begin: int): method apply (line 1059) | def apply(self, logits: paddle.Tensor, tokens: paddle.Tensor): class SuppressTokens (line 1066) | class SuppressTokens(LogitFilter): method __init__ (line 1067) | def __init__(self, suppress_tokens: Sequence[int]): method apply (line 1070) | def apply(self, logits: paddle.Tensor, tokens: paddle.Tensor): class ApplyTimestampRules (line 1075) | class ApplyTimestampRules(LogitFilter): method __init__ (line 1076) | def __init__(self, method apply (line 1084) | def apply(self, logits: paddle.Tensor, tokens: paddle.Tensor): class DecodingTask (line 1128) | class DecodingTask: method __init__ (line 1134) | def __init__(self, method _verify_options (line 1194) | def _verify_options(self, options: DecodingOptions) -> DecodingOptions: method _get_initial_tokens (line 1210) | def _get_initial_tokens(self) -> Tuple[int]: method _get_suppress_tokens (line 1233) | def _get_suppress_tokens(self) -> Tuple[int]: method _get_audio_features (line 1257) | def _get_audio_features(self, mel: paddle.Tensor): method _detect_language (line 1273) | def _detect_language(self, method _main_loop (line 1290) | def _main_loop(self, audio_features: paddle.Tensor, tokens: paddle.Ten... method run (line 1327) | def run(self, mel: paddle.Tensor) -> List[DecodingResult]: function decode (line 1407) | def decode( class Whisper (line 1443) | class Whisper(nn.Layer): method __init__ (line 1444) | def __init__(self, dims: ModelDimensions): method embed_audio (line 1460) | def embed_audio(self, mel: paddle.Tensor): method logits (line 1463) | def logits(self, tokens: paddle.Tensor, audio_features: paddle.Tensor): method forward (line 1466) | def forward(self, mel: paddle.Tensor, method device (line 1471) | def device(self): method is_multilingual (line 1475) | def is_multilingual(self): method num_languages (line 1479) | def num_languages(self): method install_kv_cache_hooks (line 1482) | def install_kv_cache_hooks(self, cache: Optional[dict]=None): function pad_or_trim (line 1524) | def pad_or_trim(array, length: int=N_SAMPLES, *, axis: int=-1): function hann_window (line 1554) | def hann_window(n_fft: int=N_FFT): function mel_filters (line 1565) | def mel_filters(resource_path: str, n_mels: int) -> paddle.Tensor: function log_mel_spectrogram (line 1582) | def log_mel_spectrogram(audio: Union[str, np.ndarray, paddle.Tensor], FILE: paddlespeech/s2t/modules/activation.py function brelu (line 29) | def brelu(x, t_min=0.0, t_max=24.0, name=None): class GLU (line 36) | class GLU(nn.Layer): method __init__ (line 39) | def __init__(self, dim: int=-1): method forward (line 43) | def forward(self, xs): class LinearGLUBlock (line 47) | class LinearGLUBlock(nn.Layer): method __init__ (line 50) | def __init__(self, idim: int): method forward (line 58) | def forward(self, xs): class ConvGLUBlock (line 62) | class ConvGLUBlock(nn.Layer): method __init__ (line 63) | def __init__(self, kernel_size, in_ch, out_ch, bottlececk_dim=0, method forward (line 130) | def forward(self, xs): function get_activation (line 146) | def get_activation(act): FILE: paddlespeech/s2t/modules/align.py class LayerNorm (line 25) | class LayerNorm(nn.LayerNorm): method __init__ (line 26) | def __init__(self, class BatchNorm1D (line 46) | class BatchNorm1D(nn.BatchNorm1D): method __init__ (line 47) | def __init__(self, class Embedding (line 71) | class Embedding(nn.Embedding): method __init__ (line 72) | def __init__(self, class Linear (line 90) | class Linear(nn.Linear): method __init__ (line 91) | def __init__(self, class Conv1D (line 119) | class Conv1D(nn.Conv1D): method __init__ (line 120) | def __init__(self, class Conv2D (line 160) | class Conv2D(nn.Conv2D): method __init__ (line 161) | def __init__(self, FILE: paddlespeech/s2t/modules/attention.py class MultiHeadedAttention (line 40) | class MultiHeadedAttention(nn.Layer): method __init__ (line 43) | def __init__(self, n_head: int, n_feat: int, dropout_rate: float): method forward_qkv (line 62) | def forward_qkv(self, method forward_attention (line 92) | def forward_attention( method forward (line 137) | def forward(self, class RelPositionMultiHeadedAttention (line 205) | class RelPositionMultiHeadedAttention(MultiHeadedAttention): method __init__ (line 208) | def __init__(self, method init_weights (line 247) | def init_weights(self): method rel_shift (line 270) | def rel_shift(self, x, zero_triu: bool=False): method forward (line 293) | def forward(self, class RoPERelPositionMultiHeadedAttention (line 384) | class RoPERelPositionMultiHeadedAttention(MultiHeadedAttention): method __init__ (line 387) | def __init__(self, method align (line 402) | def align(self, tensor: paddle.Tensor, axes: List[int], ndim=None): method apply_rotary_position_embeddings (line 420) | def apply_rotary_position_embeddings(self, sinusoidal, *tensors): method forward (line 454) | def forward(self, FILE: paddlespeech/s2t/modules/cmvn.py class GlobalCMVN (line 26) | class GlobalCMVN(nn.Layer): method __init__ (line 27) | def __init__(self, method __repr__ (line 43) | def __repr__(self): method forward (line 50) | def forward(self, x: paddle.Tensor): FILE: paddlespeech/s2t/modules/conformer_convolution.py class ConvolutionModule (line 34) | class ConvolutionModule(nn.Layer): method __init__ (line 38) | def __init__(self, method init_weights (line 126) | def init_weights(self): method forward (line 145) | def forward( FILE: paddlespeech/s2t/modules/conv2d.py class Conv2DValid (line 11) | class Conv2DValid(_ConvNd): method __init__ (line 16) | def __init__(self, method _conv_forward (line 47) | def _conv_forward(self, method forward (line 61) | def forward(self, input: paddle.Tensor) -> paddle.Tensor: FILE: paddlespeech/s2t/modules/crf.py class CRF (line 24) | class CRF(nn.Layer): method __init__ (line 39) | def __init__(self, method init_weights (line 59) | def init_weights(self): method forward (line 78) | def forward(self, method log_likelihood (line 86) | def log_likelihood(self, emissions, tags, mask=None): method decode (line 118) | def decode(self, emissions, mask=None): method _compute_scores (line 147) | def _compute_scores(self, emissions, tags, mask): method _compute_log_partition (line 221) | def _compute_log_partition(self, emissions, mask): method _viterbi_decode (line 262) | def _viterbi_decode(self, emissions, mask): method _find_best_path (line 345) | def _find_best_path(self, sample_id, best_tag, backpointers): FILE: paddlespeech/s2t/modules/ctc.py class CTCDecoderBase (line 50) | class CTCDecoderBase(nn.Layer): method __init__ (line 52) | def __init__(self, method forward (line 86) | def forward(self, hs_pad, hlens, ys_pad, ys_lens): method softmax (line 101) | def softmax(self, eouts: paddle.Tensor, temperature: float=1.0): method log_softmax (line 111) | def log_softmax(self, hs_pad: paddle.Tensor, method argmax (line 121) | def argmax(self, hs_pad: paddle.Tensor) -> paddle.Tensor: method forced_align (line 130) | def forced_align(self, class CTCDecoder (line 145) | class CTCDecoder(CTCDecoderBase): method __init__ (line 146) | def __init__(self, *args, **kwargs): method _decode_batch_greedy_offline (line 152) | def _decode_batch_greedy_offline(self, probs_split, vocab_list): method _init_ext_scorer (line 170) | def _init_ext_scorer(self, beam_alpha, beam_beta, language_model_path, method _decode_batch_beam_search_offline (line 207) | def _decode_batch_beam_search_offline( method init_decoder (line 254) | def init_decoder(self, batch_size, vocab_list, decoding_method, method decode_probs_offline (line 298) | def decode_probs_offline(self, probs, logits_lens, vocab_list, method get_decoder (line 344) | def get_decoder(self, vocab_list, batch_size, beam_alpha, beam_beta, method next (line 375) | def next(self, probs, logits_lens): method decode (line 407) | def decode(self): method reset_decoder (line 435) | def reset_decoder(self, method del_decoder (line 469) | def del_decoder(self): FILE: paddlespeech/s2t/modules/decoder.py class TransformerDecoder (line 43) | class TransformerDecoder(BatchScorerInterface, nn.Layer): method __init__ (line 65) | def __init__(self, method forward (line 112) | def forward(self, method forward_one_step (line 156) | def forward_one_step( method score (line 196) | def score(self, ys, state, x): method batch_score (line 214) | def batch_score(self, class BiTransformerDecoder (line 256) | class BiTransformerDecoder(BatchScorerInterface, nn.Layer): method __init__ (line 279) | def __init__(self, method forward (line 311) | def forward( method forward_one_step (line 346) | def forward_one_step( FILE: paddlespeech/s2t/modules/decoder_layer.py class DecoderLayer (line 32) | class DecoderLayer(nn.Layer): method __init__ (line 52) | def __init__( method forward (line 76) | def forward( FILE: paddlespeech/s2t/modules/embedding.py class PositionalEncodingInterface (line 33) | class PositionalEncodingInterface: method forward (line 34) | def forward(self, x: paddle.Tensor, method position_encoding (line 45) | def position_encoding(self, offset: int, size: int) -> paddle.Tensor: class NoPositionalEncoding (line 56) | class NoPositionalEncoding(nn.Layer, PositionalEncodingInterface): method __init__ (line 57) | def __init__(self, method forward (line 64) | def forward(self, x: paddle.Tensor, method position_encoding (line 68) | def position_encoding(self, offset: int, size: int) -> paddle.Tensor: class PositionalEncoding (line 72) | class PositionalEncoding(nn.Layer, PositionalEncodingInterface): method __init__ (line 73) | def __init__(self, method forward (line 106) | def forward(self, x: paddle.Tensor, method position_encoding (line 123) | def position_encoding(self, offset: int, size: int) -> paddle.Tensor: class RelPositionalEncoding (line 140) | class RelPositionalEncoding(PositionalEncoding): method __init__ (line 145) | def __init__(self, d_model: int, dropout_rate: float, max_len: int=5000): method forward (line 155) | def forward(self, x: paddle.Tensor, class ScaledRotaryRelPositionalEncoding (line 174) | class ScaledRotaryRelPositionalEncoding(RelPositionalEncoding): method __init__ (line 179) | def __init__(self, method sinusoidal_embeddings (line 195) | def sinusoidal_embeddings(self, method forward (line 213) | def forward(self, x: paddle.Tensor, method position_encoding (line 238) | def position_encoding(self, offset: int, size: int) -> paddle.Tensor: FILE: paddlespeech/s2t/modules/encoder.py class BaseEncoder (line 60) | class BaseEncoder(nn.Layer): method __init__ (line 62) | def __init__(self, method output_size (line 153) | def output_size(self) -> int: method forward (line 156) | def forward( method forward_chunk (line 197) | def forward_chunk( method forward_chunk_by_chunk (line 285) | def forward_chunk_by_chunk( class TransformerEncoder (line 349) | class TransformerEncoder(BaseEncoder): method __init__ (line 353) | def __init__( method forward_one_step (line 392) | def forward_one_step( class ConformerEncoder (line 424) | class ConformerEncoder(BaseEncoder): method __init__ (line 428) | def __init__(self, class SqueezeformerEncoder (line 520) | class SqueezeformerEncoder(nn.Layer): method __init__ (line 522) | def __init__(self, method output_size (line 667) | def output_size(self) -> int: method forward (line 670) | def forward( method check_ascending_list (line 737) | def check_ascending_list(self): method calculate_downsampling_factor (line 745) | def calculate_downsampling_factor(self, i: int) -> int: method forward_chunk (line 759) | def forward_chunk( FILE: paddlespeech/s2t/modules/encoder_layer.py class TransformerEncoderLayer (line 35) | class TransformerEncoderLayer(nn.Layer): method __init__ (line 38) | def __init__( method forward (line 77) | def forward( class ConformerEncoderLayer (line 132) | class ConformerEncoderLayer(nn.Layer): method __init__ (line 135) | def __init__( method forward (line 194) | def forward( class SqueezeformerEncoderLayer (line 284) | class SqueezeformerEncoderLayer(nn.Layer): method __init__ (line 287) | def __init__(self, method forward (line 332) | def forward( FILE: paddlespeech/s2t/modules/fbank.py class KaldiFbank (line 12) | class KaldiFbank(nn.Layer): method __init__ (line 13) | def __init__( method __repr__ (line 39) | def __repr__(self): method forward (line 51) | def forward(self, x: paddle.Tensor): FILE: paddlespeech/s2t/modules/initializer.py class DefaultInitializerContext (line 16) | class DefaultInitializerContext(object): method __init__ (line 23) | def __init__(self, init_type=None): method __enter__ (line 26) | def __enter__(self): method __exit__ (line 34) | def __exit__(self, exc_type, exc_val, exc_tb): FILE: paddlespeech/s2t/modules/loss.py class CTCLoss (line 29) | class CTCLoss(nn.Layer): method __init__ (line 30) | def __init__(self, method forward (line 76) | def forward(self, logits, ys_pad, hlens, ys_lens): class LabelSmoothingLoss (line 101) | class LabelSmoothingLoss(nn.Layer): method __init__ (line 124) | def __init__(self, method forward (line 148) | def forward(self, x: paddle.Tensor, target: paddle.Tensor) -> paddle.T... FILE: paddlespeech/s2t/modules/mask.py function make_xs_mask (line 29) | def make_xs_mask(xs: paddle.Tensor, pad_value=0.0) -> paddle.Tensor: function make_pad_mask (line 42) | def make_pad_mask(lengths: paddle.Tensor) -> paddle.Tensor: function make_non_pad_mask (line 68) | def make_non_pad_mask(lengths: paddle.Tensor) -> paddle.Tensor: function subsequent_mask (line 93) | def subsequent_mask(size: int) -> paddle.Tensor: function subsequent_chunk_mask (line 115) | def subsequent_chunk_mask( function add_optional_chunk_mask (line 147) | def add_optional_chunk_mask(xs: paddle.Tensor, function mask_finished_scores (line 215) | def mask_finished_scores(score: paddle.Tensor, function mask_finished_preds (line 258) | def mask_finished_preds(pred: paddle.Tensor, flag: paddle.Tensor, FILE: paddlespeech/s2t/modules/positionwise_feed_forward.py class PositionwiseFeedForward (line 29) | class PositionwiseFeedForward(nn.Layer): method __init__ (line 32) | def __init__(self, method init_weights (line 69) | def init_weights(self): method forward (line 81) | def forward(self, xs: paddle.Tensor) -> paddle.Tensor: FILE: paddlespeech/s2t/modules/subsampling.py class BaseSubsampling (line 36) | class BaseSubsampling(nn.Layer): method __init__ (line 37) | def __init__(self, pos_enc_class: nn.Layer=PositionalEncoding): method position_encoding (line 45) | def position_encoding(self, offset: int, size: int) -> paddle.Tensor: class LinearNoSubsampling (line 49) | class LinearNoSubsampling(BaseSubsampling): method __init__ (line 52) | def __init__(self, method forward (line 73) | def forward(self, x: paddle.Tensor, x_mask: paddle.Tensor, offset: int=0 class Conv2dSubsampling (line 92) | class Conv2dSubsampling(BaseSubsampling): method __init__ (line 93) | def __init__(self, *args, **kwargs): class Conv2dSubsampling4 (line 97) | class Conv2dSubsampling4(Conv2dSubsampling): method __init__ (line 100) | def __init__(self, method forward (line 126) | def forward(self, x: paddle.Tensor, x_mask: paddle.Tensor, offset: int=0 class Conv2dSubsampling6 (line 148) | class Conv2dSubsampling6(Conv2dSubsampling): method __init__ (line 151) | def __init__(self, method forward (line 179) | def forward(self, x: paddle.Tensor, x_mask: paddle.Tensor, offset: int=0 class Conv2dSubsampling8 (line 201) | class Conv2dSubsampling8(Conv2dSubsampling): method __init__ (line 204) | def __init__(self, method forward (line 232) | def forward(self, x: paddle.Tensor, x_mask: paddle.Tensor, offset: int=0 class DepthwiseConv2DSubsampling4 (line 254) | class DepthwiseConv2DSubsampling4(BaseSubsampling): method __init__ (line 266) | def __init__(self, method forward (line 304) | def forward(self, x: paddle.Tensor, x_mask: paddle.Tensor, offset: int=0 FILE: paddlespeech/s2t/modules/time_reduction.py class TimeReductionLayer1D (line 35) | class TimeReductionLayer1D(nn.Layer): method __init__ (line 49) | def __init__(self, method init_weights (line 80) | def init_weights(self): method forward (line 92) | def forward( class TimeReductionLayer2D (line 122) | class TimeReductionLayer2D(nn.Layer): method __init__ (line 123) | def __init__(self, kernel_size: int=5, stride: int=2, encoder_dim: int... method init_weights (line 145) | def init_weights(self): method forward (line 157) | def forward( class TimeReductionLayerStream (line 183) | class TimeReductionLayerStream(nn.Layer): method __init__ (line 196) | def __init__(self, method init_weights (line 225) | def init_weights(self): method forward (line 237) | def forward( FILE: paddlespeech/s2t/training/cli.py class ExtendAction (line 22) | class ExtendAction(argparse.Action): method __call__ (line 30) | def __call__(self, parser, namespace, values, option_string=None): class LoadFromFile (line 36) | class LoadFromFile(argparse.Action): method __call__ (line 37) | def __call__(self, parser, namespace, values, option_string=None): function default_argument_parser (line 43) | def default_argument_parser(parser=None): function config_from_args (line 170) | def config_from_args(args): function maybe_dump_config (line 188) | def maybe_dump_config(dump_path, config): FILE: paddlespeech/s2t/training/extensions/__init__.py function make_extension (line 19) | def make_extension(trigger: Callable=None, FILE: paddlespeech/s2t/training/extensions/evaluator.py class StandardEvaluator (line 31) | class StandardEvaluator(extension.Extension): method __init__ (line 39) | def __init__(self, model: Layer, dataloader: DataLoader): method evaluate_core (line 48) | def evaluate_core(self, batch): method evaluate_sync (line 53) | def evaluate_sync(self, data): method evaluate (line 73) | def evaluate(self): method __call__ (line 94) | def __call__(self, trainer=None): FILE: paddlespeech/s2t/training/extensions/extension.py class Extension (line 20) | class Extension(): method default_name (line 27) | def default_name(self): method __call__ (line 31) | def __call__(self, trainer): method initialize (line 37) | def initialize(self, trainer): method on_error (line 44) | def on_error(self, trainer, exc, tb): method finalize (line 49) | def finalize(self, trainer): FILE: paddlespeech/s2t/training/extensions/plot.py class PlotAttentionReport (line 23) | class PlotAttentionReport(extension.Extension): method __init__ (line 47) | def __init__( method __call__ (line 78) | def __call__(self, trainer): method log_attentions (line 114) | def log_attentions(self, logger, step): method get_attention_weights (line 142) | def get_attention_weights(self): method trim_attention_weight (line 161) | def trim_attention_weight(self, uttid, att_w): method draw_attention_plot (line 179) | def draw_attention_plot(self, att_w): method draw_han_plot (line 206) | def draw_han_plot(self, att_w): method _plot_and_save_attention (line 246) | def _plot_and_save_attention(self, att_w, filename, han_mode=False): class PlotCTCReport (line 255) | class PlotCTCReport(extension.Extension): method __init__ (line 279) | def __init__( method __call__ (line 310) | def __call__(self, trainer): method log_ctc_probs (line 334) | def log_ctc_probs(self, logger, step): method get_ctc_probs (line 353) | def get_ctc_probs(self): method trim_ctc_prob (line 369) | def trim_ctc_prob(self, uttid, prob): method draw_ctc_plot (line 377) | def draw_ctc_plot(self, ctc_prob): method _plot_and_save_ctc (line 416) | def _plot_and_save_ctc(self, ctc_prob, filename): FILE: paddlespeech/s2t/training/extensions/snapshot.py function load_records (line 33) | def load_records(records_fp): class Snapshot (line 40) | class Snapshot(extension.Extension): method __init__ (line 57) | def __init__(self, method initialize (line 75) | def initialize(self, trainer: Trainer): method on_error (line 87) | def on_error(self, trainer, exc, tb): method __call__ (line 91) | def __call__(self, trainer: Trainer): method full (line 94) | def full(self): method save_checkpoint_and_update (line 100) | def save_checkpoint_and_update(self, trainer: Trainer, mode: str): FILE: paddlespeech/s2t/training/extensions/visualizer.py class VisualDL (line 20) | class VisualDL(extension.Extension): method __init__ (line 31) | def __init__(self, output_dir): method __call__ (line 34) | def __call__(self, trainer: Trainer): method finalize (line 38) | def finalize(self, trainer): FILE: paddlespeech/s2t/training/optimizer/__init__.py function register_optimizer (line 40) | def register_optimizer(cls): class Noam (line 48) | class Noam(paddle.optimizer.Adam): method __init__ (line 51) | def __init__(self, method __repr__ (line 74) | def __repr__(self): function dynamic_import_optimizer (line 81) | def dynamic_import_optimizer(module): class OptimizerFactory (line 97) | class OptimizerFactory(): method from_args (line 99) | def from_args(cls, name: str, args: Dict[Text, Any]): FILE: paddlespeech/s2t/training/optimizer/adadelta.py class SimpleAdadelta (line 21) | class SimpleAdadelta(Optimizer): method __init__ (line 80) | def __init__( method step (line 115) | def step(self): function adadelta (line 166) | def adadelta(params_grads, function _single_tensor_adadelta (line 195) | def _single_tensor_adadelta(params_grads, FILE: paddlespeech/s2t/training/reporter.py function ObsScope (line 23) | def ObsScope(observations): function get_observations (line 36) | def get_observations(): function report (line 41) | def report(name, value): class Summary (line 52) | class Summary(): method __init__ (line 57) | def __init__(self): method add (line 62) | def add(self, value, weight=1): method compute_mean (line 75) | def compute_mean(self): method make_statistics (line 80) | def make_statistics(self): class DictSummary (line 92) | class DictSummary(): method __init__ (line 99) | def __init__(self): method add (line 102) | def add(self, d): method compute_mean (line 118) | def compute_mean(self): method make_statistics (line 130) | def make_statistics(self): FILE: paddlespeech/s2t/training/scheduler.py function register_scheduler (line 39) | def register_scheduler(cls): class WarmupLR (line 47) | class WarmupLR(LRScheduler): method __init__ (line 61) | def __init__(self, method __repr__ (line 70) | def __repr__(self): method get_lr (line 73) | def get_lr(self): method set_step (line 79) | def set_step(self, step: int=None): class ConstantLR (line 93) | class ConstantLR(LRScheduler): method __init__ (line 104) | def __init__(self, learning_rate, last_epoch=-1, verbose=False): method get_lr (line 107) | def get_lr(self): class NewBobScheduler (line 112) | class NewBobScheduler(LRScheduler): method __init__ (line 143) | def __init__( method step (line 159) | def step(self, metric_value=None): method get_lr (line 182) | def get_lr(self, metric_value): method save (line 211) | def save(self): method load (line 221) | def load(self, data): function dynamic_import_scheduler (line 229) | def dynamic_import_scheduler(module): class LRSchedulerFactory (line 245) | class LRSchedulerFactory(): method from_args (line 247) | def from_args(cls, name: str, args: Dict[Text, Any]): FILE: paddlespeech/s2t/training/timer.py class Timer (line 24) | class Timer(): method __init__ (line 30) | def __init__(self, message=None): method duration (line 33) | def duration(self) -> str: method __enter__ (line 38) | def __enter__(self): method __exit__ (line 42) | def __exit__(self, type, value, traceback): method __call__ (line 46) | def __call__(self) -> float: method __str__ (line 49) | def __str__(self): FILE: paddlespeech/s2t/training/trainer.py class Trainer (line 45) | class Trainer(): method __init__ (line 102) | def __init__(self, config, args): method train (line 150) | def train(self): method eval (line 154) | def eval(self): method setup (line 159) | def setup(self): method parallel (line 173) | def parallel(self): method save (line 180) | def save(self, tag=None, infos: dict=None): method resume_or_scratch (line 203) | def resume_or_scratch(self): method maybe_batch_sampler_step (line 238) | def maybe_batch_sampler_step(self): method before_train (line 247) | def before_train(self): method new_epoch (line 261) | def new_epoch(self): method after_train_batch (line 268) | def after_train_batch(self): method do_train (line 276) | def do_train(self): method run (line 345) | def run(self): method restore (line 357) | def restore(self): method run_test (line 369) | def run_test(self): method run_export (line 379) | def run_export(self): method run_align (line 389) | def run_align(self): method setup_output_dir (line 399) | def setup_output_dir(self): method destory (line 434) | def destory(self): method setup_visualizer (line 441) | def setup_visualizer(self): method dump_config (line 457) | def dump_config(self): method train_batch (line 473) | def train_batch(self): method valid (line 479) | def valid(self): method test (line 485) | def test(self): method export (line 491) | def export(self): method align (line 497) | def align(self): method setup_model (line 502) | def setup_model(self): method setup_dataloader (line 508) | def setup_dataloader(self): FILE: paddlespeech/s2t/training/triggers/compare_value_trigger.py class CompareValueTrigger (line 19) | class CompareValueTrigger(): method __init__ (line 29) | def __init__(self, key, compare_fn, trigger=(1, "epoch")): method __call__ (line 36) | def __call__(self, trainer): method _init_summary (line 61) | def _init_summary(self): FILE: paddlespeech/s2t/training/triggers/interval_trigger.py class IntervalTrigger (line 17) | class IntervalTrigger(): method __init__ (line 20) | def __init__(self, period: int, unit: str): method __call__ (line 29) | def __call__(self, trainer): FILE: paddlespeech/s2t/training/triggers/limit_trigger.py class LimitTrigger (line 17) | class LimitTrigger(): method __init__ (line 20) | def __init__(self, limit: int, unit: str): method __call__ (line 28) | def __call__(self, trainer): FILE: paddlespeech/s2t/training/triggers/time_trigger.py class TimeTrigger (line 17) | class TimeTrigger(): method __init__ (line 24) | def __init__(self, period): method __call__ (line 28) | def __call__(self, trainer): method state_dict (line 35) | def state_dict(self): method set_state_dict (line 41) | def set_state_dict(self, state_dict): FILE: paddlespeech/s2t/training/triggers/utils.py function never_fail_trigger (line 17) | def never_fail_trigger(trainer): function get_trigger (line 21) | def get_trigger(trigger): FILE: paddlespeech/s2t/training/updaters/standard_updater.py class StandardUpdater (line 35) | class StandardUpdater(UpdaterBase): method __init__ (line 40) | def __init__(self, method update (line 67) | def update(self): method update_core (line 118) | def update_core(self, batch): method updates_per_epoch (line 149) | def updates_per_epoch(self): method new_epoch (line 160) | def new_epoch(self): method read_batch (line 170) | def read_batch(self): method state_dict (line 179) | def state_dict(self): method set_state_dict (line 189) | def set_state_dict(self, state_dict): FILE: paddlespeech/s2t/training/updaters/trainer.py class _ExtensionEntry (line 34) | class _ExtensionEntry(): method __init__ (line 35) | def __init__(self, extension, trigger, priority): class Trainer (line 41) | class Trainer(): method __init__ (line 42) | def __init__(self, method is_before_training (line 59) | def is_before_training(self): method extend (line 62) | def extend(self, extension, name=None, trigger=None, priority=None): method get_extension (line 99) | def get_extension(self, name): method run (line 107) | def run(self): FILE: paddlespeech/s2t/training/updaters/updater.py class UpdaterState (line 27) | class UpdaterState: class UpdaterBase (line 32) | class UpdaterBase(): method __init__ (line 55) | def __init__(self, init_state=None): method update (line 62) | def update(self, batch): method state_dict (line 66) | def state_dict(self): method set_state_dict (line 73) | def set_state_dict(self, state_dict): method save (line 77) | def save(self, path): method load (line 82) | def load(self, path): FILE: paddlespeech/s2t/utils/asr_utils.py function label_smoothing_dist (line 22) | def label_smoothing_dist(odim, lsm_type, transcript=None, blank=0): FILE: paddlespeech/s2t/utils/bleu_score.py function bleu (line 24) | def bleu(hypothesis, reference): function char_bleu (line 38) | def char_bleu(hypothesis, reference): class ErrorCalculator (line 55) | class ErrorCalculator(): method __init__ (line 66) | def __init__(self, char_list, sym_space, sym_pad, report_bleu=False): method __call__ (line 78) | def __call__(self, ys_hat, ys_pad): method calculate_corpus_bleu (line 93) | def calculate_corpus_bleu(self, ys_hat, ys_pad): FILE: paddlespeech/s2t/utils/check_kwargs.py function check_kwargs (line 18) | def check_kwargs(func, kwargs, name=None): FILE: paddlespeech/s2t/utils/checkpoint.py class Checkpoint (line 34) | class Checkpoint(): method __init__ (line 35) | def __init__(self, kbest_n: int=5, latest_n: int=1): method save_parameters (line 42) | def save_parameters(self, method load_parameters (line 76) | def load_parameters(self, method load_latest_parameters (line 132) | def load_latest_parameters(self, method load_best_parameters (line 152) | def load_best_parameters(self, method _should_save_best (line 172) | def _should_save_best(self, metric: float) -> bool: method _best_full (line 182) | def _best_full(self): method _latest_full (line 185) | def _latest_full(self): method _save_best_checkpoint_and_update (line 188) | def _save_best_checkpoint_and_update(self, metric, checkpoint_dir, method _save_latest_checkpoint_and_update (line 206) | def _save_latest_checkpoint_and_update( method _del_checkpoint (line 220) | def _del_checkpoint(self, checkpoint_dir, tag_or_iteration): method _load_checkpoint_idx (line 227) | def _load_checkpoint_idx(self, checkpoint_record: str) -> int: method _save_checkpoint_record (line 243) | def _save_checkpoint_record(self, checkpoint_dir: str, iteration: int): method _save_parameters (line 263) | def _save_parameters(self, FILE: paddlespeech/s2t/utils/cli_readers.py function file_reader_helper (line 26) | def file_reader_helper( class KaldiReader (line 72) | class KaldiReader: method __init__ (line 73) | def __init__(self, rspecifier, return_shape=False, segments=None): method __iter__ (line 78) | def __iter__(self): class HDF5Reader (line 87) | class HDF5Reader: method __init__ (line 88) | def __init__(self, rspecifier, return_shape=False): method __iter__ (line 99) | def __iter__(self): class SoundHDF5Reader (line 155) | class SoundHDF5Reader: method __init__ (line 156) | def __init__(self, rspecifier, return_shape=False): method __iter__ (line 165) | def __iter__(self): class SoundReader (line 221) | class SoundReader: method __init__ (line 222) | def __init__(self, rspecifier, return_shape=False): method __iter__ (line 232) | def __iter__(self): FILE: paddlespeech/s2t/utils/cli_utils.py function strtobool (line 23) | def strtobool(x): function get_commandline_args (line 28) | def get_commandline_args(): function is_scipy_wav_style (line 62) | def is_scipy_wav_style(value): function assert_scipy_wav_style (line 68) | def assert_scipy_wav_style(value): FILE: paddlespeech/s2t/utils/cli_writers.py function file_writer_helper (line 27) | def file_writer_helper( class BaseWriter (line 95) | class BaseWriter: method __setitem__ (line 96) | def __setitem__(self, key, value): method __enter__ (line 99) | def __enter__(self): method __exit__ (line 102) | def __exit__(self, exc_type, exc_val, exc_tb): method close (line 105) | def close(self): function get_num_frames_writer (line 124) | def get_num_frames_writer(write_num_frames: str): class KaldiWriter (line 144) | class KaldiWriter(BaseWriter): method __init__ (line 145) | def __init__(self, method __setitem__ (line 161) | def __setitem__(self, key, value): function parse_wspecifier (line 167) | def parse_wspecifier(wspecifier: str) -> Dict[str, str]: class HDF5Writer (line 186) | class HDF5Writer(BaseWriter): method __init__ (line 194) | def __init__(self, wspecifier, write_num_frames=None, compress=False): method __setitem__ (line 212) | def __setitem__(self, key, value): class SoundHDF5Writer (line 221) | class SoundHDF5Writer(BaseWriter): method __init__ (line 230) | def __init__(self, wspecifier, write_num_frames=None, pcm_format="wav"): method __setitem__ (line 245) | def __setitem__(self, key, value): class SoundWriter (line 258) | class SoundWriter(BaseWriter): method __init__ (line 267) | def __init__(self, wspecifier, write_num_frames=None, pcm_format="wav"): method __setitem__ (line 285) | def __setitem__(self, key, value): FILE: paddlespeech/s2t/utils/ctc_utils.py function remove_duplicates_and_blank (line 31) | def remove_duplicates_and_blank(hyp: List[int], blank_id=0) -> List[int]: function insert_blank (line 56) | def insert_blank(label: np.ndarray, blank_id: int=0) -> np.ndarray: function forced_align (line 76) | def forced_align(ctc_probs: paddle.Tensor, y: paddle.Tensor, function ctc_align (line 144) | def ctc_align(config, model, dataloader, batch_size, stride_ms, token_dict, FILE: paddlespeech/s2t/utils/dynamic_import.py function dynamic_import (line 30) | def dynamic_import(import_path, alias=dict()): function filter_valid_args (line 51) | def filter_valid_args(args: Dict[Text, Any], valid_keys: List[Text]): function filter_out_tensor (line 60) | def filter_out_tensor(args: Dict[Text, Any]): function instance_class (line 64) | def instance_class(module_class, args: Dict[Text, Any]): FILE: paddlespeech/s2t/utils/dynamic_pip_install.py function install (line 17) | def install(package_name): FILE: paddlespeech/s2t/utils/error_rate.py function _levenshtein_distance (line 25) | def _levenshtein_distance(ref, hyp): function word_errors (line 72) | def word_errors(reference, hypothesis, ignore_case=False, delimiter=' '): function char_errors (line 100) | def char_errors(reference, hypothesis, ignore_case=False, remove_space=F... function wer (line 132) | def wer(reference, hypothesis, ignore_case=False, delimiter=' '): function cer (line 173) | def cer(reference, hypothesis, ignore_case=False, remove_space=False): class ErrorCalculator (line 216) | class ErrorCalculator(): method __init__ (line 227) | def __init__(self, method __call__ (line 248) | def __call__(self, ys_hat, ys_pad, is_ctc=False): method calculate_cer_ctc (line 273) | def calculate_cer_ctc(self, ys_hat, ys_pad): method convert_to_char (line 305) | def convert_to_char(self, ys_hat, ys_pad): method calculate_cer (line 332) | def calculate_cer(self, seqs_hat, seqs_true): method calculate_wer (line 349) | def calculate_wer(self, seqs_hat, seqs_true): FILE: paddlespeech/s2t/utils/layer_tools.py function summary (line 23) | def summary(layer: nn.Layer, print_func=print): function print_grads (line 39) | def print_grads(model, print_func=print): function print_params (line 47) | def print_params(model, print_func=print): function gradient_norm (line 63) | def gradient_norm(layer: nn.Layer): function recursively_remove_weight_norm (line 72) | def recursively_remove_weight_norm(layer: nn.Layer): function freeze (line 81) | def freeze(layer: nn.Layer): function unfreeze (line 86) | def unfreeze(layer: nn.Layer): FILE: paddlespeech/s2t/utils/log.py function find_log_dir (line 24) | def find_log_dir(log_dir=None): function find_log_dir_and_names (line 49) | def find_log_dir_and_names(program_name=None, log_dir=None): class Log (line 95) | class Log(): method __init__ (line 124) | def __init__(self, name=None): method getlog (line 127) | def getlog(self): class Autolog (line 131) | class Autolog: method __init__ (line 134) | def __init__(self, method getlog (line 161) | def getlog(self): FILE: paddlespeech/s2t/utils/mp_tools.py function rank_zero_only (line 21) | def rank_zero_only(func): FILE: paddlespeech/s2t/utils/profiler.py class ProfilerOptions (line 30) | class ProfilerOptions(object): method __init__ (line 50) | def __init__(self, options_str): method _parse_from_string (line 63) | def _parse_from_string(self, options_str): method __getitem__ (line 82) | def __getitem__(self, name): function add_profiler_step (line 89) | def add_profiler_step(options_str=None): FILE: paddlespeech/s2t/utils/socket_server.py function socket_send (line 29) | def socket_send(server_ip: str, server_port: str, data: bytes): function warm_up_test (line 42) | def warm_up_test(audio_process_handler, class AsrTCPServer (line 60) | class AsrTCPServer(socketserver.TCPServer): method __init__ (line 63) | def __init__(self, class AsrRequestHandler (line 75) | class AsrRequestHandler(socketserver.BaseRequestHandler): method handle (line 78) | def handle(self): method _write_to_file (line 98) | def _write_to_file(self, data): FILE: paddlespeech/s2t/utils/tensor_utils.py function has_tensor (line 27) | def has_tensor(val): function pad_sequence (line 41) | def pad_sequence(sequences: List[paddle.Tensor], function add_sos_eos (line 120) | def add_sos_eos(ys_pad: paddle.Tensor, sos: int, eos: int, function th_accuracy (line 173) | def th_accuracy(pad_outputs: paddle.Tensor, FILE: paddlespeech/s2t/utils/text_grid.py function segment_alignment (line 23) | def segment_alignment(alignment: List[int], blank_id=0) -> List[List[int]]: function align_to_tierformat (line 56) | def align_to_tierformat(align_segs: List[List[int]], function generate_textgrid (line 101) | def generate_textgrid(maxtime: float, FILE: paddlespeech/s2t/utils/utility.py function all_version (line 35) | def all_version(): function UpdateConfig (line 46) | def UpdateConfig(config): function seed_all (line 53) | def seed_all(seed: int=20210329): function log_add (line 60) | def log_add(args: List[int]) -> float: function get_subsample (line 76) | def get_subsample(config): FILE: paddlespeech/server/base_commands.py class ServerBaseCommand (line 32) | class ServerBaseCommand: method execute (line 33) | def execute(self, argv: List[str]) -> bool: class ServerHelpCommand (line 40) | class ServerHelpCommand: method execute (line 41) | def execute(self, argv: List[str]) -> bool: class ClientBaseCommand (line 59) | class ClientBaseCommand: method execute (line 60) | def execute(self, argv: List[str]) -> bool: class ClientHelpCommand (line 67) | class ClientHelpCommand: method execute (line 68) | def execute(self, argv: List[str]) -> bool: FILE: paddlespeech/server/bin/paddlespeech_client.py class TTSClientExecutor (line 48) | class TTSClientExecutor(BaseExecutor): method __init__ (line 49) | def __init__(self): method postprocess (line 84) | def postprocess(self, wav_base64: str, outfile: str) -> float: method execute (line 101) | def execute(self, argv: List[str]) -> bool: method __call__ (line 137) | def __call__(self, class TTSOnlineClientExecutor (line 170) | class TTSOnlineClientExecutor(BaseExecutor): method __init__ (line 171) | def __init__(self): method execute (line 201) | def execute(self, argv: List[str]) -> bool: method __call__ (line 227) | def __call__(self, class ASRClientExecutor (line 283) | class ASRClientExecutor(BaseExecutor): method __init__ (line 284) | def __init__(self): method execute (line 324) | def execute(self, argv: List[str]) -> bool: method __call__ (line 356) | def __call__(self, class ASROnlineClientExecutor (line 401) | class ASROnlineClientExecutor(BaseExecutor): method __init__ (line 402) | def __init__(self): method execute (line 435) | def execute(self, argv: List[str]) -> bool: method __call__ (line 464) | def __call__(self, class CLSClientExecutor (line 504) | class CLSClientExecutor(BaseExecutor): method __init__ (line 505) | def __init__(self): method execute (line 525) | def execute(self, argv: List[str]) -> bool: method __call__ (line 545) | def __call__(self, class TextClientExecutor (line 562) | class TextClientExecutor(BaseExecutor): method __init__ (line 563) | def __init__(self): method execute (line 578) | def execute(self, argv: List[str]) -> bool: method __call__ (line 604) | def __call__(self, input: str, server_ip: str="127.0.0.1", port: int=8... class VectorClientExecutor (line 630) | class VectorClientExecutor(BaseExecutor): method __init__ (line 631) | def __init__(self): method execute (line 655) | def execute(self, argv: List[str]) -> bool: method __call__ (line 689) | def __call__(self, class ACSClientExecutor (line 736) | class ACSClientExecutor(BaseExecutor): method __init__ (line 737) | def __init__(self): method execute (line 758) | def execute(self, argv: List[str]) -> bool: method __call__ (line 786) | def __call__( FILE: paddlespeech/server/bin/paddlespeech_server.py class ServerExecutor (line 52) | class ServerExecutor(BaseExecutor): method __init__ (line 53) | def __init__(self): method init (line 70) | def init(self, config) -> bool: method execute (line 99) | def execute(self, argv: List[str]) -> bool: method __call__ (line 109) | def __call__(self, class ServerStatsExecutor (line 123) | class ServerStatsExecutor(): method __init__ (line 124) | def __init__(self): method show_support_models (line 145) | def show_support_models(self, pretrained_models: dict): method execute (line 165) | def execute(self, argv: List[str]) -> bool: FILE: paddlespeech/server/engine/acs/python/acs_engine.py class ACSEngine (line 28) | class ACSEngine(BaseEngine): method __init__ (line 29) | def __init__(self): method init (line 36) | def init(self, config: dict): method read_search_words (line 74) | def read_search_words(self): method get_asr_content (line 91) | def get_asr_content(self, audio_data): method read_wave (line 147) | def read_wave(self, audio_data: str): method get_macthed_word (line 180) | def get_macthed_word(self, msg): method run (line 210) | def run(self, audio_data): FILE: paddlespeech/server/engine/asr/online/ctc_endpoint.py class OnlineCTCEndpointRule (line 23) | class OnlineCTCEndpointRule: class OnlineCTCEndpoingOpt (line 30) | class OnlineCTCEndpoingOpt: class OnlineCTCEndpoint (line 54) | class OnlineCTCEndpoint: method __init__ (line 59) | def __init__(self, opts: OnlineCTCEndpoingOpt): method reset (line 69) | def reset(self): method rule_activated (line 73) | def rule_activated(self, method endpoint_detected (line 86) | def endpoint_detected(self, FILE: paddlespeech/server/engine/asr/online/ctc_search.py class CTCPrefixBeamSearch (line 25) | class CTCPrefixBeamSearch: method __init__ (line 26) | def __init__(self, config): method reset (line 49) | def reset(self): method search (line 57) | def search(self, ctc_probs, device, blank_id=0): method get_one_best_hyps (line 189) | def get_one_best_hyps(self): method get_hyps (line 197) | def get_hyps(self): method finalize_search (line 205) | def finalize_search(self): FILE: paddlespeech/server/engine/asr/online/onnx/asr_engine.py class PaddleASRConnectionHanddler (line 39) | class PaddleASRConnectionHanddler: method __init__ (line 40) | def __init__(self, asr_engine): method init_decoder (line 78) | def init_decoder(self): method model_reset (line 103) | def model_reset(self): method output_reset (line 108) | def output_reset(self): method reset_continuous_decoding (line 113) | def reset_continuous_decoding(self): method reset (line 120) | def reset(self): method extract_feat (line 154) | def extract_feat(self, samples: ByteString): method decode (line 214) | def decode(self, is_finished=False): method decode_one_chunk (line 287) | def decode_one_chunk(self, x_chunk, x_chunk_lens): method get_result (line 323) | def get_result(self): method get_word_time_stamp (line 334) | def get_word_time_stamp(self): method rescoring (line 338) | def rescoring(self): class ASRServerExecutor (line 342) | class ASRServerExecutor(ASRExecutor): method __init__ (line 343) | def __init__(self): method update_config (line 348) | def update_config(self) -> None: method init_model (line 366) | def init_model(self) -> None: method _init_from_path (line 377) | def _init_from_path(self, class ASREngine (line 456) | class ASREngine(BaseEngine): method __init__ (line 463) | def __init__(self): method init_model (line 466) | def init_model(self) -> bool: method init (line 480) | def init(self, config: dict) -> bool: method new_handler (line 515) | def new_handler(self): method preprocess (line 523) | def preprocess(self, *args, **kwargs): method run (line 526) | def run(self, *args, **kwargs): method postprocess (line 529) | def postprocess(self): FILE: paddlespeech/server/engine/asr/online/paddleinference/asr_engine.py class PaddleASRConnectionHanddler (line 39) | class PaddleASRConnectionHanddler: method __init__ (line 40) | def __init__(self, asr_engine): method init_decoder (line 78) | def init_decoder(self): method model_reset (line 103) | def model_reset(self): method output_reset (line 108) | def output_reset(self): method reset_continuous_decoding (line 113) | def reset_continuous_decoding(self): method reset (line 120) | def reset(self): method extract_feat (line 154) | def extract_feat(self, samples: ByteString): method decode (line 214) | def decode(self, is_finished=False): method decode_one_chunk (line 287) | def decode_one_chunk(self, x_chunk, x_chunk_lens): method get_result (line 337) | def get_result(self): method get_word_time_stamp (line 348) | def get_word_time_stamp(self): method rescoring (line 352) | def rescoring(self): class ASRServerExecutor (line 356) | class ASRServerExecutor(ASRExecutor): method __init__ (line 357) | def __init__(self): method update_config (line 362) | def update_config(self) -> None: method init_model (line 380) | def init_model(self) -> None: method _init_from_path (line 393) | def _init_from_path(self, class ASREngine (line 472) | class ASREngine(BaseEngine): method __init__ (line 479) | def __init__(self): method init_model (line 482) | def init_model(self) -> bool: method init (line 496) | def init(self, config: dict) -> bool: method new_handler (line 532) | def new_handler(self): method preprocess (line 540) | def preprocess(self, *args, **kwargs): method run (line 543) | def run(self, *args, **kwargs): method postprocess (line 546) | def postprocess(self): FILE: paddlespeech/server/engine/asr/online/python/asr_engine.py class PaddleASRConnectionHanddler (line 44) | class PaddleASRConnectionHanddler: method __init__ (line 45) | def __init__(self, asr_engine): method init_decoder (line 83) | def init_decoder(self): method model_reset (line 123) | def model_reset(self): method output_reset (line 143) | def output_reset(self): method reset_continuous_decoding (line 156) | def reset_continuous_decoding(self): method reset (line 168) | def reset(self): method extract_feat (line 204) | def extract_feat(self, samples: ByteString): method decode (line 264) | def decode(self, is_finished=False): method decode_one_chunk (line 347) | def decode_one_chunk(self, x_chunk, x_chunk_lens): method advance_decoding (line 398) | def advance_decoding(self, is_finished=False): method update_result (line 529) | def update_result(self): method get_result (line 541) | def get_result(self): method get_word_time_stamp (line 552) | def get_word_time_stamp(self): method rescoring (line 561) | def rescoring(self): class ASRServerExecutor (line 704) | class ASRServerExecutor(ASRExecutor): method __init__ (line 705) | def __init__(self): method update_config (line 710) | def update_config(self) -> None: method init_model (line 749) | def init_model(self) -> None: method _init_from_path (line 770) | def _init_from_path(self, class ASREngine (line 855) | class ASREngine(BaseEngine): method __init__ (line 862) | def __init__(self): method init_model (line 865) | def init_model(self) -> bool: method init (line 880) | def init(self, config: dict) -> bool: method new_handler (line 916) | def new_handler(self): method preprocess (line 924) | def preprocess(self, *args, **kwargs): method run (line 927) | def run(self, *args, **kwargs): method postprocess (line 930) | def postprocess(self): FILE: paddlespeech/server/engine/asr/paddleinference/asr_engine.py class ASRServerExecutor (line 36) | class ASRServerExecutor(ASRExecutor): method __init__ (line 37) | def __init__(self): method _init_from_path (line 42) | def _init_from_path(self, method infer (line 125) | def infer(self, model_type: str): class ASREngine (line 161) | class ASREngine(BaseEngine): method __init__ (line 168) | def __init__(self): method init (line 171) | def init(self, config: dict) -> bool: class PaddleASRConnectionHandler (line 212) | class PaddleASRConnectionHandler(ASRServerExecutor): method __init__ (line 213) | def __init__(self, asr_engine): method run (line 230) | def run(self, audio_data): FILE: paddlespeech/server/engine/asr/python/asr_engine.py class ASRServerExecutor (line 27) | class ASRServerExecutor(ASRExecutor): method __init__ (line 28) | def __init__(self): class ASREngine (line 33) | class ASREngine(BaseEngine): method __init__ (line 40) | def __init__(self): method init (line 43) | def init(self, config: dict) -> bool: class PaddleASRConnectionHandler (line 89) | class PaddleASRConnectionHandler(ASRServerExecutor): method __init__ (line 90) | def __init__(self, asr_engine): method run (line 106) | def run(self, audio_data): FILE: paddlespeech/server/engine/base_engine.py class BaseEngine (line 22) | class BaseEngine(metaclass=Singleton): method __init__ (line 27) | def __init__(self): method init (line 31) | def init(self, *args, **kwargs): method postprocess (line 40) | def postprocess(self, *args, **kwargs) -> Union[str, os.PathLike]: method run (line 50) | def run(self, *args, **kwargs) -> Union[str, os.PathLike]: FILE: paddlespeech/server/engine/cls/paddleinference/cls_engine.py class CLSServerExecutor (line 34) | class CLSServerExecutor(CLSExecutor): method __init__ (line 35) | def __init__(self): method _init_from_path (line 40) | def _init_from_path( method infer (line 96) | def infer(self): class CLSEngine (line 104) | class CLSEngine(BaseEngine): method __init__ (line 111) | def __init__(self): method init (line 114) | def init(self, config: dict) -> bool: class PaddleCLSConnectionHandler (line 156) | class PaddleCLSConnectionHandler(CLSServerExecutor): method __init__ (line 157) | def __init__(self, cls_engine): method run (line 175) | def run(self, audio_data): method postprocess (line 190) | def postprocess(self, topk: int): FILE: paddlespeech/server/engine/cls/python/cls_engine.py class CLSServerExecutor (line 27) | class CLSServerExecutor(CLSExecutor): method __init__ (line 28) | def __init__(self): class CLSEngine (line 33) | class CLSEngine(BaseEngine): method __init__ (line 40) | def __init__(self): method init (line 43) | def init(self, config: dict) -> bool: class PaddleCLSConnectionHandler (line 83) | class PaddleCLSConnectionHandler(CLSServerExecutor): method __init__ (line 84) | def __init__(self, cls_engine): method run (line 102) | def run(self, audio_data): method postprocess (line 116) | def postprocess(self, topk: int): FILE: paddlespeech/server/engine/engine_factory.py class EngineFactory (line 21) | class EngineFactory(object): method get_engine (line 23) | def get_engine(engine_name: Text, engine_type: Text): FILE: paddlespeech/server/engine/engine_pool.py function get_engine_pool (line 20) | def get_engine_pool() -> dict: function init_engine_pool (line 27) | def init_engine_pool(config) -> bool: FILE: paddlespeech/server/engine/engine_warmup.py function warm_up (line 20) | def warm_up(engine_and_type: str, warm_up_time: int=3) -> bool: FILE: paddlespeech/server/engine/text/python/text_engine.py class PaddleTextConnectionHandler (line 23) | class PaddleTextConnectionHandler: method __init__ (line 24) | def __init__(self, text_engine): method run (line 42) | def run(self, text): method preprocess (line 58) | def preprocess(self, text): method infer (line 80) | def infer(self): method postprocess (line 93) | def postprocess(self): class TextServerExecutor (line 123) | class TextServerExecutor(TextExecutor): method __init__ (line 124) | def __init__(self): class TextEngine (line 131) | class TextEngine(BaseEngine): method __init__ (line 132) | def __init__(self): method init (line 138) | def init(self, config: dict): FILE: paddlespeech/server/engine/tts/online/onnx/tts_engine.py class TTSServerExecutor (line 37) | class TTSServerExecutor(TTSExecutor): method __init__ (line 38) | def __init__(self): method _init_from_path (line 42) | def _init_from_path( class TTSEngine (line 174) | class TTSEngine(BaseEngine): method __init__ (line 181) | def __init__(self, name=None): method init (line 186) | def init(self, config: dict) -> bool: class PaddleTTSConnectionHandler (line 263) | class PaddleTTSConnectionHandler: method __init__ (line 264) | def __init__(self, tts_engine): method depadding (line 284) | def depadding(self, data, chunk_num, chunk_id, block, pad, upsample): method infer (line 302) | def infer( method run (line 445) | def run(self, sentence: str, spk_id: int=0): FILE: paddlespeech/server/engine/tts/online/python/tts_engine.py class TTSServerExecutor (line 39) | class TTSServerExecutor(TTSExecutor): method __init__ (line 40) | def __init__(self): method get_model_info (line 45) | def get_model_info(self, method _init_from_path (line 87) | def _init_from_path( class TTSEngine (line 220) | class TTSEngine(BaseEngine): method __init__ (line 227) | def __init__(self, name=None): method init (line 232) | def init(self, config: dict) -> bool: class PaddleTTSConnectionHandler (line 304) | class PaddleTTSConnectionHandler: method __init__ (line 305) | def __init__(self, tts_engine): method depadding (line 325) | def depadding(self, data, chunk_num, chunk_id, block, pad, upsample): method infer (line 343) | def infer( method run (line 474) | def run( FILE: paddlespeech/server/engine/tts/paddleinference/tts_engine.py class TTSServerExecutor (line 41) | class TTSServerExecutor(TTSExecutor): method __init__ (line 42) | def __init__(self): method _init_from_path (line 47) | def _init_from_path( method infer (line 201) | def infer(self, class TTSEngine (line 274) | class TTSEngine(BaseEngine): method __init__ (line 281) | def __init__(self): method init (line 286) | def init(self, config: dict) -> bool: class PaddleTTSConnectionHandler (line 337) | class PaddleTTSConnectionHandler(TTSServerExecutor): method __init__ (line 338) | def __init__(self, tts_engine): method postprocess (line 355) | def postprocess(self, method run (line 434) | def run(self, FILE: paddlespeech/server/engine/tts/python/tts_engine.py class TTSServerExecutor (line 34) | class TTSServerExecutor(TTSExecutor): method __init__ (line 35) | def __init__(self): class TTSEngine (line 40) | class TTSEngine(BaseEngine): method __init__ (line 47) | def __init__(self, name=None): method init (line 52) | def init(self, config: dict) -> bool: class PaddleTTSConnectionHandler (line 99) | class PaddleTTSConnectionHandler(TTSServerExecutor): method __init__ (line 100) | def __init__(self, tts_engine): method postprocess (line 117) | def postprocess(self, method run (line 197) | def run(self, FILE: paddlespeech/server/engine/vector/python/vector_engine.py class PaddleVectorConnectionHandler (line 28) | class PaddleVectorConnectionHandler: method __init__ (line 29) | def __init__(self, vector_engine): method run (line 48) | def run(self, audio_data, task="spk"): method get_enroll_test_score (line 74) | def get_enroll_test_score(self, enroll_audio, test_audio): method extract_audio_embedding (line 98) | def extract_audio_embedding(self, audio: str, sample_rate: int=16000): class VectorServerExecutor (line 151) | class VectorServerExecutor(VectorExecutor): method __init__ (line 152) | def __init__(self): class VectorEngine (line 159) | class VectorEngine(BaseEngine): method __init__ (line 160) | def __init__(self): method init (line 166) | def init(self, config: dict): FILE: paddlespeech/server/entry.py function _CommandDict (line 20) | def _CommandDict(): function server_execute (line 24) | def server_execute(): function client_execute (line 40) | def client_execute(): FILE: paddlespeech/server/executor.py class BaseExecutor (line 20) | class BaseExecutor(ABC): method __init__ (line 25) | def __init__(self): method execute (line 29) | def execute(self, argv: List[str]) -> bool: method __call__ (line 42) | def __call__(self, *arg, **kwargs): FILE: paddlespeech/server/restful/acs_api.py function help (line 32) | def help(): function acs (line 63) | def acs(request_body: ASRRequest): FILE: paddlespeech/server/restful/api.py function setup_router (line 29) | def setup_router(api_list: List): FILE: paddlespeech/server/restful/asr_api.py function help (line 34) | def help(): function asr (line 57) | def asr(request_body: ASRRequest): FILE: paddlespeech/server/restful/cls_api.py function help (line 34) | def help(): function cls (line 57) | def cls(request_body: CLSRequest): FILE: paddlespeech/server/restful/request.py class ASRRequest (line 27) | class ASRRequest(BaseModel): class TTSRequest (line 48) | class TTSRequest(BaseModel): class CLSRequest (line 74) | class CLSRequest(BaseModel): class TextRequest (line 89) | class TextRequest(BaseModel): class VectorRequest (line 96) | class VectorRequest(BaseModel): class VectorScoreRequest (line 112) | class VectorScoreRequest(BaseModel): FILE: paddlespeech/server/restful/response.py class Message (line 25) | class Message(BaseModel): class AsrResult (line 32) | class AsrResult(BaseModel): class ASRResponse (line 36) | class ASRResponse(BaseModel): class TTSResult (line 59) | class TTSResult(BaseModel): class TTSResponse (line 70) | class TTSResponse(BaseModel): class CLSResults (line 100) | class CLSResults(BaseModel): class CLSResult (line 105) | class CLSResult(BaseModel): class CLSResponse (line 110) | class CLSResponse(BaseModel): class TextResult (line 141) | class TextResult(BaseModel): class TextResponse (line 145) | class TextResponse(BaseModel): class VectorResult (line 170) | class VectorResult(BaseModel): class VectorResponse (line 174) | class VectorResponse(BaseModel): class VectorScoreResult (line 194) | class VectorScoreResult(BaseModel): class VectorScoreResponse (line 198) | class VectorScoreResponse(BaseModel): class ErrorResponse (line 221) | class ErrorResponse(BaseModel): class AcsResult (line 240) | class AcsResult(BaseModel): class ACSResponse (line 245) | class ACSResponse(BaseModel): FILE: paddlespeech/server/restful/text_api.py function help (line 32) | def help(): function asr (line 53) | def asr(request_body: TextRequest): FILE: paddlespeech/server/restful/tts_api.py function help (line 34) | def help(): function tts (line 57) | def tts(request_body: TTSRequest): function stream_tts (line 142) | async def stream_tts(request_body: TTSRequest): function get_samplerate (line 166) | def get_samplerate(): FILE: paddlespeech/server/restful/vector_api.py function help (line 36) | def help(): function vector (line 55) | def vector(request_body: VectorRequest): function score (line 110) | def score(request_body: VectorScoreRequest): FILE: paddlespeech/server/tests/asr/offline/http_client.py function readwav2base64 (line 20) | def readwav2base64(wav_file): function main (line 30) | def main(): FILE: paddlespeech/server/tests/asr/online/microphone_client.py class ASRWsAudioHandler (line 29) | class ASRWsAudioHandler(threading.Thread): method __init__ (line 30) | def __init__(self, url="127.0.0.1", port=8091): method startrecord (line 44) | def startrecord(self): method recording (line 50) | def recording(self): method save (line 72) | def save(self): method stoprecord (line 85) | def stoprecord(self): method run (line 91) | async def run(self): FILE: paddlespeech/server/tests/text/http_client.py function text_client (line 24) | def text_client(args): FILE: paddlespeech/server/tests/tts/offline/http_client.py function tts_client (line 30) | def tts_client(args): FILE: paddlespeech/server/util.py function cli_server_register (line 53) | def cli_server_register(name: str, description: str='') -> Any: function get_server_command (line 68) | def get_server_command(name: str) -> Any: function cli_client_register (line 77) | def cli_client_register(name: str, description: str='') -> Any: function get_client_command (line 92) | def get_client_command(name: str) -> Any: function _get_uncompress_path (line 101) | def _get_uncompress_path(filepath: os.PathLike) -> os.PathLike: function download_and_decompress (line 131) | def download_and_decompress(archive: Dict[str, str], path: str) -> os.Pa... function load_state_dict_from_url (line 161) | def load_state_dict_from_url(url: str, path: str, md5: str=None) -> os.P... function _get_user_home (line 172) | def _get_user_home(): function _get_paddlespcceh_home (line 176) | def _get_paddlespcceh_home(): function _get_sub_home (line 191) | def _get_sub_home(directory): function _md5 (line 203) | def _md5(text: str): class ConfigCache (line 209) | class ConfigCache: method __init__ (line 210) | def __init__(self): method cache_info (line 226) | def cache_info(self): method _initialize (line 229) | def _initialize(self): method flush (line 234) | def flush(self): class StatsWorker (line 245) | class StatsWorker(threading.Thread): method __init__ (line 246) | def __init__(self, method run (line 257) | def run(self): function _note_one_stat (line 279) | def _note_one_stat(cls_name, params={}): function _parse_args (line 336) | def _parse_args(func, *args, **kwargs): function stats_wrapper (line 357) | def stats_wrapper(executor_func): FILE: paddlespeech/server/utils/audio_handler.py class TextHttpHandler (line 30) | class TextHttpHandler: method __init__ (line 31) | def __init__(self, server_ip="127.0.0.1", port=8090): method run (line 48) | def run(self, text): class ASRWsAudioHandler (line 74) | class ASRWsAudioHandler: method __init__ (line 75) | def __init__(self, method read_wave (line 99) | def read_wave(self, wavfile_path: str): method run (line 132) | async def run(self, wavfile_path: str): class ASRHttpHandler (line 207) | class ASRHttpHandler: method __init__ (line 208) | def __init__(self, server_ip=None, port=None, endpoint="/paddlespeech/... method run (line 225) | def run(self, input, audio_format, sample_rate, lang): class TTSWsHandler (line 255) | class TTSWsHandler: method __init__ (line 256) | def __init__(self, server="127.0.0.1", port=8092, play: bool=False): method play_audio (line 290) | def play_audio(self): method run (line 302) | async def run(self, text: str, spk_id=0, output: str=None): class TTSHttpHandler (line 405) | class TTSHttpHandler: method __init__ (line 406) | def __init__(self, server="127.0.0.1", port=8092, play: bool=False): method play_audio (line 442) | def play_audio(self): method run (line 454) | def run(self, text: str, spk_id=0, output: str=None): class VectorHttpHandler (line 514) | class VectorHttpHandler: method __init__ (line 515) | def __init__(self, server_ip=None, port=None): method run (line 532) | def run(self, input, audio_format, sample_rate, task="spk"): class VectorScoreHttpHandler (line 560) | class VectorScoreHttpHandler: method __init__ (line 561) | def __init__(self, server_ip=None, port=None): method run (line 578) | def run(self, enroll_audio, test_audio, audio_format, sample_rate): FILE: paddlespeech/server/utils/audio_process.py function wav2pcm (line 22) | def wav2pcm(wavfile, pcmfile, data_type=np.int16): function pcm2wav (line 37) | def pcm2wav(pcm_file, wav_file, channels=1, bits=16, sample_rate=16000): function change_speed (line 62) | def change_speed(sample_raw, speed_rate, sample_rate): function float2pcm (line 109) | def float2pcm(sig, dtype='int16'): function pcm2float (line 132) | def pcm2float(data): function save_audio (line 146) | def save_audio(bytes_data, audio_path, sample_rate: int=24000) -> bool: FILE: paddlespeech/server/utils/buffer.py class Frame (line 16) | class Frame(object): method __init__ (line 19) | def __init__(self, bytes, timestamp, duration): class ChunkBuffer (line 25) | class ChunkBuffer(object): method __init__ (line 26) | def __init__(self, method reset (line 63) | def reset(self): method frame_generator (line 70) | def frame_generator(self, audio): FILE: paddlespeech/server/utils/config.py function get_config (line 18) | def get_config(config_file: str): FILE: paddlespeech/server/utils/errors.py class ErrorCode (line 20) | class ErrorCode(IntEnum): function failed_response (line 41) | def failed_response(code, msg=""): FILE: paddlespeech/server/utils/exception.py class ServerBaseException (line 19) | class ServerBaseException(Exception): method __init__ (line 23) | def __init__(self, error_code, msg=None): FILE: paddlespeech/server/utils/onnx_infer.py function get_sess (line 22) | def get_sess(model_path: Optional[os.PathLike]=None, sess_conf: dict=None): FILE: paddlespeech/server/utils/paddle_predictor.py function init_predictor (line 23) | def init_predictor(model_dir: Optional[os.PathLike]=None, function run_model (line 74) | def run_model(predictor, input: List) -> List: FILE: paddlespeech/server/utils/util.py function wav2base64 (line 19) | def wav2base64(wav_file: str): function base64towav (line 29) | def base64towav(base64_string: str): function self_check (line 33) | def self_check(): function denorm (line 39) | def denorm(data, mean, std): function get_chunks (line 45) | def get_chunks(data, block_size, pad_size, step): function compute_delay (line 82) | def compute_delay(receive_time_list, chunk_duration_list): function count_engine (line 107) | def count_engine(logfile: str="./nohup.out"): FILE: paddlespeech/server/utils/vad.py class VADAudio (line 19) | class VADAudio(): method __init__ (line 20) | def __init__(self, method add_audio (line 40) | def add_audio(self, audio): method frame_generator (line 45) | def frame_generator(self): method vad_collector (line 53) | def vad_collector(self): FILE: paddlespeech/server/ws/api.py function setup_router (line 24) | def setup_router(api_list: List): FILE: paddlespeech/server/ws/asr_api.py function websocket_endpoint (line 27) | async def websocket_endpoint(websocket: WebSocket): FILE: paddlespeech/server/ws/tts_api.py function websocket_endpoint (line 28) | async def websocket_endpoint(websocket: WebSocket): function get_samplerate (line 122) | def get_samplerate(): FILE: paddlespeech/t2s/audio/audio.py class AudioProcessor (line 21) | class AudioProcessor(object): method __init__ (line 22) | def __init__(self, method _create_mel_filter (line 54) | def _create_mel_filter(self): method read_wav (line 63) | def read_wav(self, filename): method write_wav (line 72) | def write_wav(self, path, wav): method stft (line 75) | def stft(self, wav): method istft (line 86) | def istft(self, D): method spectrogram (line 95) | def spectrogram(self, wav): method mel_spectrogram (line 99) | def mel_spectrogram(self, wav): FILE: paddlespeech/t2s/audio/codec.py function label_2_float (line 21) | def label_2_float(x, bits): function float_2_label (line 26) | def float_2_label(x, bits): function encode_mu_law (line 35) | def encode_mu_law(x, mu): function decode_mu_law (line 45) | def decode_mu_law(y, mu, from_labels=True): FILE: paddlespeech/t2s/audio/spec_normalizer.py class NormalizerBase (line 31) | class NormalizerBase(object): method transform (line 32) | def transform(self, spec): method inverse (line 35) | def inverse(self, normalized): class LogMagnitude (line 39) | class LogMagnitude(NormalizerBase): method __init__ (line 44) | def __init__(self, min=1e-5): method transform (line 47) | def transform(self, x): method inverse (line 52) | def inverse(self, x): class UnitMagnitude (line 56) | class UnitMagnitude(NormalizerBase): method __init__ (line 62) | def __init__(self, min=1e-5): method transform (line 65) | def transform(self, x): method inverse (line 71) | def inverse(self, x): FILE: paddlespeech/t2s/datasets/am_batch_fn.py function build_erniesat_collate_fn (line 25) | def build_erniesat_collate_fn(mlm_prob: float=0.8, class ErnieSATCollateFn (line 37) | class ErnieSATCollateFn: method __init__ (line 40) | def __init__(self, method __call__ (line 50) | def __call__(self, exmaples): function erniesat_batch_fn (line 59) | def erniesat_batch_fn(examples, function tacotron2_single_spk_batch_fn (line 168) | def tacotron2_single_spk_batch_fn(examples): function tacotron2_multi_spk_batch_fn (line 197) | def tacotron2_multi_spk_batch_fn(examples): function speedyspeech_single_spk_batch_fn (line 238) | def speedyspeech_single_spk_batch_fn(examples): function speedyspeech_multi_spk_batch_fn (line 276) | def speedyspeech_multi_spk_batch_fn(examples): function fastspeech2_single_spk_batch_fn (line 318) | def fastspeech2_single_spk_batch_fn(examples): function fastspeech2_multi_spk_batch_fn (line 362) | def fastspeech2_multi_spk_batch_fn(examples): function diffsinger_single_spk_batch_fn (line 417) | def diffsinger_single_spk_batch_fn(examples): function diffsinger_multi_spk_batch_fn (line 476) | def diffsinger_multi_spk_batch_fn(examples): function transformer_single_spk_batch_fn (line 546) | def transformer_single_spk_batch_fn(examples): function vits_single_spk_batch_fn (line 575) | def vits_single_spk_batch_fn(examples): function vits_multi_spk_batch_fn (line 617) | def vits_multi_spk_batch_fn(examples): function jets_single_spk_batch_fn (line 672) | def jets_single_spk_batch_fn(examples): function jets_multi_spk_batch_fn (line 734) | def jets_multi_spk_batch_fn(examples): function build_starganv2_vc_collate_fn (line 809) | def build_starganv2_vc_collate_fn(latent_dim: int=16, max_mel_length: in... class StarGANv2VCCollateFn (line 815) | class StarGANv2VCCollateFn: method __init__ (line 818) | def __init__(self, latent_dim: int=16, max_mel_length: int=192): method random_clip (line 822) | def random_clip(self, mel: np.array): method __call__ (line 832) | def __call__(self, exmaples): method starganv2_vc_batch_fn (line 835) | def starganv2_vc_batch_fn(self, examples): function fastspeech2_single_spk_batch_fn_static (line 878) | def fastspeech2_single_spk_batch_fn_static(examples): function fastspeech2_multi_spk_batch_fn_static (line 889) | def fastspeech2_multi_spk_batch_fn_static(examples): function speedyspeech_single_spk_batch_fn_static (line 911) | def speedyspeech_single_spk_batch_fn_static(examples): function speedyspeech_multi_spk_batch_fn_static (line 925) | def speedyspeech_multi_spk_batch_fn_static(examples): FILE: paddlespeech/t2s/datasets/batch.py class TextIDBatcher (line 30) | class TextIDBatcher(object): method __init__ (line 33) | def __init__(self, pad_id=0, dtype=np.int64): method __call__ (line 37) | def __call__(self, minibatch): function batch_text_id (line 42) | def batch_text_id(minibatch, pad_id=0, dtype=np.int64): class WavBatcher (line 71) | class WavBatcher(object): method __init__ (line 74) | def __init__(self, pad_value=0., dtype=np.float32): method __call__ (line 78) | def __call__(self, minibatch): function batch_wav (line 83) | def batch_wav(minibatch, pad_value=0., dtype=np.float32): class SpecBatcher (line 113) | class SpecBatcher(object): method __init__ (line 116) | def __init__(self, pad_value=0., time_major=False, dtype=np.float32): method __call__ (line 121) | def __call__(self, minibatch): function batch_spec (line 130) | def batch_spec(minibatch, pad_value=0., time_major=False, dtype=np.float... function batch_sequences (line 169) | def batch_sequences(sequences, axis=0, pad_value=0): FILE: paddlespeech/t2s/datasets/data_table.py class DataTable (line 25) | class DataTable(Dataset): method __init__ (line 40) | def __init__(self, method _initialize_cache (line 78) | def _initialize_cache(self): method _get_metadata (line 83) | def _get_metadata(self, idx: int) -> Dict[str, Any]: method _convert (line 87) | def _convert(self, meta_datum: Dict[str, Any]) -> Dict[str, Any]: method __getitem__ (line 108) | def __getitem__(self, idx: int) -> Dict[str, Any]: method __len__ (line 127) | def __len__(self) -> int: class StarGANv2VCDataTable (line 138) | class StarGANv2VCDataTable(DataTable): method __init__ (line 139) | def __init__(self, data: List[Dict[str, Any]]): method __getitem__ (line 152) | def __getitem__(self, idx: int) -> Dict[str, Any]: FILE: paddlespeech/t2s/datasets/dataset.py function split (line 30) | def split(dataset, first_size): class TransformDataset (line 37) | class TransformDataset(Dataset): method __init__ (line 38) | def __init__(self, dataset, transform): method __len__ (line 48) | def __len__(self): method __getitem__ (line 51) | def __getitem__(self, i): class CacheDataset (line 56) | class CacheDataset(Dataset): method __init__ (line 57) | def __init__(self, dataset): method __len__ (line 66) | def __len__(self): method __getitem__ (line 69) | def __getitem__(self, i): class TupleDataset (line 75) | class TupleDataset(Dataset): method __init__ (line 76) | def __init__(self, *datasets): method __getitem__ (line 92) | def __getitem__(self, index): method __len__ (line 105) | def __len__(self): class DictDataset (line 109) | class DictDataset(Dataset): method __init__ (line 110) | def __init__(self, **datasets): method __getitem__ (line 137) | def __getitem__(self, index): method __len__ (line 150) | def __len__(self): class SliceDataset (line 154) | class SliceDataset(Dataset): method __init__ (line 155) | def __init__(self, dataset, start, finish, order=None): method __len__ (line 178) | def __len__(self): method __getitem__ (line 181) | def __getitem__(self, i): class SubsetDataset (line 196) | class SubsetDataset(Dataset): method __init__ (line 197) | def __init__(self, dataset, indices): method __len__ (line 210) | def __len__(self): method __getitem__ (line 213) | def __getitem__(self, i): class FilterDataset (line 218) | class FilterDataset(Dataset): method __init__ (line 219) | def __init__(self, dataset, filter_fn): method __len__ (line 232) | def __len__(self): method __getitem__ (line 235) | def __getitem__(self, i): class ChainDataset (line 240) | class ChainDataset(Dataset): method __init__ (line 241) | def __init__(self, *datasets): method __len__ (line 249) | def __len__(self): method __getitem__ (line 252) | def __getitem__(self, i): FILE: paddlespeech/t2s/datasets/get_feats.py class LogMelFBank (line 26) | class LogMelFBank(): method __init__ (line 27) | def __init__(self, method _create_mel_filter (line 58) | def _create_mel_filter(self): method _stft (line 69) | def _stft(self, wav: np.ndarray): method _spectrogram (line 80) | def _spectrogram(self, wav: np.ndarray): method _mel_spectrogram (line 84) | def _mel_spectrogram(self, wav: np.ndarray): method get_log_mel_fbank (line 93) | def get_log_mel_fbank(self, wav, base='10'): class Pitch (line 104) | class Pitch(): method __init__ (line 105) | def __init__(self, method _convert_to_continuous_f0 (line 116) | def _convert_to_continuous_f0(self, f0: np.ndarray) -> np.ndarray: method _calculate_f0 (line 137) | def _calculate_f0(self, method _average_by_duration (line 157) | def _average_by_duration(self, input: np.ndarray, method get_pitch (line 172) | def get_pitch(self, class Energy (line 186) | class Energy(): method __init__ (line 187) | def __init__(self, method _stft (line 202) | def _stft(self, wav: np.ndarray): method _calculate_energy (line 213) | def _calculate_energy(self, input: np.ndarray): method _average_by_duration (line 222) | def _average_by_duration(self, input: np.ndarray, method get_energy (line 234) | def get_energy(self, class LinearSpectrogram (line 246) | class LinearSpectrogram(): method __init__ (line 247) | def __init__( method _stft (line 262) | def _stft(self, wav: np.ndarray): method _spectrogram (line 273) | def _spectrogram(self, wav: np.ndarray): method get_linear_spectrogram (line 277) | def get_linear_spectrogram(self, wav: np.ndarray): FILE: paddlespeech/t2s/datasets/ljspeech.py class LJSpeechMetaData (line 21) | class LJSpeechMetaData(Dataset): method __init__ (line 22) | def __init__(self, root): method __getitem__ (line 35) | def __getitem__(self, i): method __len__ (line 38) | def __len__(self): FILE: paddlespeech/t2s/datasets/preprocess_utils.py function get_phn_dur (line 22) | def get_phn_dur(file_name): function note2midi (line 48) | def note2midi(notes: List[str]) -> List[str]: function time2frame (line 68) | def time2frame( function get_sentences_svs (line 92) | def get_sentences_svs( function merge_silence (line 132) | def merge_silence(sentence): function get_input_token (line 163) | def get_input_token(sentence, output_path, dataset="baker"): function get_phones_tones (line 191) | def get_phones_tones(sentence, function get_spk_id_map (line 233) | def get_spk_id_map(speaker_set, output_path): function compare_duration_and_mel_length (line 240) | def compare_duration_and_mel_length(sentences, utt, mel): FILE: paddlespeech/t2s/datasets/sampler.py class ErnieSATSampler (line 7) | class ErnieSATSampler(BatchSampler): method __init__ (line 56) | def __init__(self, method __iter__ (line 95) | def __iter__(self): method __len__ (line 142) | def __len__(self): method set_epoch (line 147) | def set_epoch(self, epoch): FILE: paddlespeech/t2s/datasets/vocoder_batch_fn.py class Clip (line 22) | class Clip(object): method __init__ (line 26) | def __init__( method __call__ (line 52) | def __call__(self, batch): method _adjust_length (line 96) | def _adjust_length(self, x, c): class WaveRNNClip (line 116) | class WaveRNNClip(Clip): method __init__ (line 117) | def __init__(self, method to_quant (line 137) | def to_quant(self, wav): method __call__ (line 148) | def __call__(self, batch): class Clip_static (line 221) | class Clip_static(Clip): method __call__ (line 225) | def __call__(self, batch): FILE: paddlespeech/t2s/exps/PTQ_dynamic.py function parse_args (line 20) | def parse_args(): function main (line 64) | def main(): FILE: paddlespeech/t2s/exps/PTQ_static.py function parse_args (line 13) | def parse_args(): function quantize (line 101) | def quantize(args): function main (line 147) | def main(): FILE: paddlespeech/t2s/exps/diffsinger/gen_gta_mel.py function evaluate (line 33) | def evaluate(args, diffsinger_config): function main (line 177) | def main(): FILE: paddlespeech/t2s/exps/diffsinger/get_minmax.py function get_minmax (line 24) | def get_minmax(spec, min_spec, max_spec): function main (line 35) | def main(): FILE: paddlespeech/t2s/exps/diffsinger/normalize.py function main (line 29) | def main(): FILE: paddlespeech/t2s/exps/diffsinger/preprocess.py function process_sentence (line 51) | def process_sentence( function process_sentences (line 138) | def process_sentences( function main (line 198) | def main(): FILE: paddlespeech/t2s/exps/diffsinger/train.py function train_sp (line 48) | def train_sp(args, config): function main (line 215) | def main(): FILE: paddlespeech/t2s/exps/dygraph_to_static.py function am_dygraph_to_static (line 25) | def am_dygraph_to_static(args): function voc_dygraph_to_static (line 47) | def voc_dygraph_to_static(args): function parse_args (line 65) | def parse_args(): function main (line 158) | def main(): FILE: paddlespeech/t2s/exps/ernie_sat/align.py function _get_max_idx (line 34) | def _get_max_idx(dic): function _readtg (line 38) | def _readtg(tg_path: str, lang: str='en', fs: int=24000, n_shift: int=300): function alignment (line 102) | def alignment(wav_path: str, function words2phns (line 145) | def words2phns(text: str, lang='en'): function get_phns_spans (line 205) | def get_phns_spans(wav_path: str, FILE: paddlespeech/t2s/exps/ernie_sat/normalize.py function main (line 28) | def main(): FILE: paddlespeech/t2s/exps/ernie_sat/preprocess.py function process_sentence (line 39) | def process_sentence(config: Dict[str, Any], function process_sentences (line 130) | def process_sentences(config, function main (line 176) | def main(): FILE: paddlespeech/t2s/exps/ernie_sat/synthesize.py function evaluate (line 32) | def evaluate(args): function parse_args (line 130) | def parse_args(): function main (line 186) | def main(): FILE: paddlespeech/t2s/exps/ernie_sat/synthesize_e2e.py function _p2id (line 42) | def _p2id(phonemes: List[str]) -> np.ndarray: function prep_feats_with_dur (line 49) | def prep_feats_with_dur(wav_path: str, function prep_feats (line 158) | def prep_feats(wav_path: str, function get_mlm_output (line 222) | def get_mlm_output(wav_path: str, function get_wav (line 267) | def get_wav(wav_path: str, function parse_args (line 308) | def parse_args(): FILE: paddlespeech/t2s/exps/ernie_sat/train.py function train_sp (line 43) | def train_sp(args, config): function main (line 170) | def main(): FILE: paddlespeech/t2s/exps/ernie_sat/utils.py function _get_user (line 30) | def _get_user(): function str2md5 (line 34) | def str2md5(string): function get_tmp_name (line 39) | def get_tmp_name(text: str): function get_dict (line 43) | def get_dict(dictfile: str): function get_span_bdy (line 55) | def get_span_bdy(mfa_start: List[float], function get_dur_adj_factor (line 67) | def get_dur_adj_factor(orig_dur: List[int], function read_2col_text (line 86) | def read_2col_text(path: Union[Path, str]) -> Dict[str, str]: function load_num_sequence_text (line 113) | def load_num_sequence_text(path: Union[Path, str], loader_type: str="csv... function is_chinese (line 156) | def is_chinese(ch): function get_voc_out (line 163) | def get_voc_out(mel): function eval_durs (line 179) | def eval_durs(phns, target_lang: str='zh', fs: int=24000, n_shift: int=3... FILE: paddlespeech/t2s/exps/fastspeech2/gen_gta_mel.py function evaluate (line 34) | def evaluate(args, fastspeech2_config): function main (line 161) | def main(): FILE: paddlespeech/t2s/exps/fastspeech2/normalize.py function main (line 28) | def main(): FILE: paddlespeech/t2s/exps/fastspeech2/preprocess.py function process_sentence (line 41) | def process_sentence(config: Dict[str, Any], function process_sentences (line 147) | def process_sentences(config, function main (line 199) | def main(): FILE: paddlespeech/t2s/exps/fastspeech2/train.py function train_sp (line 44) | def train_sp(args, config): function main (line 185) | def main(): FILE: paddlespeech/t2s/exps/fastspeech2/vc2_infer.py function _process_utterance (line 11) | def _process_utterance(ifpath: Path, function main (line 23) | def main(args): FILE: paddlespeech/t2s/exps/gan_vocoder/hifigan/train.py function train_sp (line 49) | def train_sp(args, config): function main (line 242) | def main(): FILE: paddlespeech/t2s/exps/gan_vocoder/multi_band_melgan/train.py function train_sp (line 49) | def train_sp(args, config): function main (line 230) | def main(): FILE: paddlespeech/t2s/exps/gan_vocoder/normalize.py function main (line 28) | def main(): FILE: paddlespeech/t2s/exps/gan_vocoder/parallelwave_gan/synthesize_from_wav.py function evaluate (line 32) | def evaluate(args, config): function main (line 79) | def main(): FILE: paddlespeech/t2s/exps/gan_vocoder/parallelwave_gan/train.py function train_sp (line 47) | def train_sp(args, config): function main (line 205) | def main(): FILE: paddlespeech/t2s/exps/gan_vocoder/preprocess.py function process_sentence (line 37) | def process_sentence(config: Dict[str, Any], function process_sentences (line 110) | def process_sentences(config, function main (line 154) | def main(): FILE: paddlespeech/t2s/exps/gan_vocoder/style_melgan/train.py function train_sp (line 48) | def train_sp(args, config): function main (line 223) | def main(): FILE: paddlespeech/t2s/exps/gan_vocoder/synthesize.py function main (line 31) | def main(): FILE: paddlespeech/t2s/exps/inference.py function parse_args (line 29) | def parse_args(): function main (line 124) | def main(): FILE: paddlespeech/t2s/exps/inference_streaming.py function parse_args (line 34) | def parse_args(): function main (line 103) | def main(): FILE: paddlespeech/t2s/exps/jets/inference.py function parse_args (line 28) | def parse_args(): function main (line 94) | def main(): FILE: paddlespeech/t2s/exps/jets/normalize.py function main (line 28) | def main(): FILE: paddlespeech/t2s/exps/jets/preprocess.py function process_sentence (line 41) | def process_sentence(config: Dict[str, Any], function process_sentences (line 182) | def process_sentences(config, function main (line 236) | def main(): FILE: paddlespeech/t2s/exps/jets/synthesize.py function evaluate (line 30) | def evaluate(args): function parse_args (line 112) | def parse_args(): function main (line 139) | def main(): FILE: paddlespeech/t2s/exps/jets/synthesize_e2e.py function evaluate (line 31) | def evaluate(args): function parse_args (line 127) | def parse_args(): function main (line 175) | def main(): FILE: paddlespeech/t2s/exps/jets/train.py function train_sp (line 51) | def train_sp(args, config): function main (line 260) | def main(): FILE: paddlespeech/t2s/exps/lite_predict.py function parse_args (line 27) | def parse_args(): function main (line 91) | def main(): FILE: paddlespeech/t2s/exps/lite_predict_streaming.py function parse_args (line 33) | def parse_args(): function main (line 98) | def main(): FILE: paddlespeech/t2s/exps/lite_syn_utils.py function get_lite_predictor (line 13) | def get_lite_predictor(model_dir: Optional[os.PathLike]=None, function get_lite_am_output (line 22) | def get_lite_am_output(input: str, function get_lite_voc_output (line 68) | def get_lite_voc_output(voc_predictor, input): function get_lite_am_sublayer_output (line 77) | def get_lite_am_sublayer_output(am_sublayer_predictor, input): function get_lite_streaming_am_output (line 87) | def get_lite_streaming_am_output(input: str, FILE: paddlespeech/t2s/exps/ort_predict.py function ort_predict (line 28) | def ort_predict(args): function parse_args (line 104) | def parse_args(): function main (line 145) | def main(): FILE: paddlespeech/t2s/exps/ort_predict_e2e.py function ort_predict (line 29) | def ort_predict(args): function parse_args (line 145) | def parse_args(): function main (line 226) | def main(): FILE: paddlespeech/t2s/exps/ort_predict_streaming.py function ort_predict (line 31) | def ort_predict(args): function parse_args (line 181) | def parse_args(): function main (line 251) | def main(): FILE: paddlespeech/t2s/exps/speedyspeech/gen_gta_mel.py function evaluate (line 36) | def evaluate(args, speedyspeech_config): function main (line 175) | def main(): FILE: paddlespeech/t2s/exps/speedyspeech/inference.py function main (line 25) | def main(): FILE: paddlespeech/t2s/exps/speedyspeech/normalize.py function main (line 29) | def main(): FILE: paddlespeech/t2s/exps/speedyspeech/preprocess.py function process_sentence (line 39) | def process_sentence(config: Dict[str, Any], function process_sentences (line 121) | def process_sentences(config, function main (line 171) | def main(): FILE: paddlespeech/t2s/exps/speedyspeech/synthesize_e2e.py function evaluate (line 36) | def evaluate(args, speedyspeech_config, pwg_config): function main (line 139) | def main(): FILE: paddlespeech/t2s/exps/speedyspeech/train.py function train_sp (line 44) | def train_sp(args, config): function main (line 187) | def main(): FILE: paddlespeech/t2s/exps/starganv2_vc/normalize.py function main (line 27) | def main(): FILE: paddlespeech/t2s/exps/starganv2_vc/preprocess.py function process_sentence (line 36) | def process_sentence(config: Dict[str, Any], function process_sentences (line 68) | def process_sentences( function main (line 107) | def main(): FILE: paddlespeech/t2s/exps/starganv2_vc/train.py function train_sp (line 51) | def train_sp(args, config): function main (line 237) | def main(): FILE: paddlespeech/t2s/exps/starganv2_vc/vc.py function get_mel_extractor (line 36) | def get_mel_extractor(): function preprocess (line 59) | def preprocess(wave, mel_extractor): function compute_style (line 68) | def compute_style(speaker_dicts, mel_extractor, style_encoder, mapping_n... function get_models (line 90) | def get_models(args, uncompress_path): function voice_conversion (line 139) | def voice_conversion(args, uncompress_path): function parse_args (line 232) | def parse_args(): function main (line 249) | def main(): FILE: paddlespeech/t2s/exps/stream_play_tts.py function depadding (line 68) | def depadding(data, chunk_num, chunk_id, block, pad, upsample): function inference_stream (line 86) | def inference_stream(text): FILE: paddlespeech/t2s/exps/syn_utils.py function denorm (line 95) | def denorm(data, mean, std): function norm (line 99) | def norm(data, mean, std): function get_chunks (line 103) | def get_chunks(mel, chunk_size: int, pad_size: int): function get_sentences (line 124) | def get_sentences(text_file: Optional[os.PathLike], lang: str='zh'): function get_sentences_svs (line 139) | def get_sentences_svs(text_file: Optional[os.PathLike]): function get_test_dataset (line 152) | def get_test_dataset(test_metadata: List[Dict[str, Any]], function get_dev_dataloader (line 195) | def get_dev_dataloader(dev_metadata: List[Dict[str, Any]], function get_frontend (line 289) | def get_frontend(lang: str='zh', function run_frontend (line 314) | def run_frontend( function get_am_inference (line 375) | def get_am_inference( function get_voc_inference (line 445) | def get_voc_inference( function am_to_static (line 489) | def am_to_static(am_inference, function voc_to_static (line 560) | def voc_to_static(voc_inference, function get_predictor (line 573) | def get_predictor( function get_am_output (line 680) | def get_am_output(input: str, function get_voc_output (line 731) | def get_voc_output(voc_predictor, input): function get_am_sublayer_output (line 744) | def get_am_sublayer_output(am_sublayer_predictor, input): function get_streaming_am_output (line 759) | def get_streaming_am_output(input: str, function get_sess (line 790) | def get_sess(model_path: Optional[os.PathLike], FILE: paddlespeech/t2s/exps/synthesize.py function evaluate (line 32) | def evaluate(args): function parse_args (line 142) | def parse_args(): function main (line 257) | def main(): FILE: paddlespeech/t2s/exps/synthesize_e2e.py function evaluate (line 35) | def evaluate(args): function parse_args (line 205) | def parse_args(): function main (line 351) | def main(): FILE: paddlespeech/t2s/exps/synthesize_streaming.py function evaluate (line 39) | def evaluate(args): function parse_args (line 202) | def parse_args(): function main (line 289) | def main(): FILE: paddlespeech/t2s/exps/tacotron2/preprocess.py function process_sentence (line 39) | def process_sentence(config: Dict[str, Any], function process_sentences (line 118) | def process_sentences(config, function main (line 163) | def main(): FILE: paddlespeech/t2s/exps/tacotron2/train.py function train_sp (line 44) | def train_sp(args, config): function main (line 163) | def main(): FILE: paddlespeech/t2s/exps/transformer_tts/normalize.py function main (line 28) | def main(): FILE: paddlespeech/t2s/exps/transformer_tts/preprocess.py function get_lj_sentences (line 33) | def get_lj_sentences(file_name, frontend): function get_input_token (line 58) | def get_input_token(sentence, output_path): function get_spk_id_map (line 80) | def get_spk_id_map(speaker_set, output_path): function process_sentence (line 87) | def process_sentence(config: Dict[str, Any], function process_sentences (line 122) | def process_sentences(config, function main (line 163) | def main(): FILE: paddlespeech/t2s/exps/transformer_tts/synthesize.py function evaluate (line 33) | def evaluate(args, acoustic_model_config, vocoder_config): function main (line 92) | def main(): FILE: paddlespeech/t2s/exps/transformer_tts/synthesize_e2e.py function evaluate (line 32) | def evaluate(args, acoustic_model_config, vocoder_config): function main (line 106) | def main(): FILE: paddlespeech/t2s/exps/transformer_tts/train.py function train_sp (line 42) | def train_sp(args, config): function main (line 158) | def main(): FILE: paddlespeech/t2s/exps/vits/inference.py function parse_args (line 28) | def parse_args(): function main (line 94) | def main(): FILE: paddlespeech/t2s/exps/vits/lite_predict.py function parse_args (line 27) | def parse_args(): function main (line 73) | def main(): FILE: paddlespeech/t2s/exps/vits/normalize.py function intersperse (line 36) | def intersperse(lst, item): function insert_after_character (line 42) | def insert_after_character(lst, item): function add_blank (line 53) | def add_blank(phones: List[str], function main (line 73) | def main(): FILE: paddlespeech/t2s/exps/vits/preprocess.py function process_sentence (line 39) | def process_sentence(config: Dict[str, Any], function process_sentences (line 131) | def process_sentences(config, function main (line 176) | def main(): FILE: paddlespeech/t2s/exps/vits/synthesize.py function evaluate (line 30) | def evaluate(args): function parse_args (line 112) | def parse_args(): function main (line 139) | def main(): FILE: paddlespeech/t2s/exps/vits/synthesize_e2e.py function evaluate (line 31) | def evaluate(args): function parse_args (line 130) | def parse_args(): function main (line 183) | def main(): FILE: paddlespeech/t2s/exps/vits/train.py function train_sp (line 50) | def train_sp(args, config): function main (line 249) | def main(): FILE: paddlespeech/t2s/exps/vits/voice_cloning.py function voice_cloning (line 33) | def voice_cloning(args): function parse_args (line 152) | def parse_args(): function main (line 199) | def main(): FILE: paddlespeech/t2s/exps/voice_cloning.py function gen_random_embed (line 33) | def gen_random_embed(use_ecapa: bool=False): function voice_cloning (line 46) | def voice_cloning(args): function parse_args (line 150) | def parse_args(): function main (line 219) | def main(): FILE: paddlespeech/t2s/exps/waveflow/config.py function get_cfg_defaults (line 51) | def get_cfg_defaults(): FILE: paddlespeech/t2s/exps/waveflow/ljspeech.py class LJSpeech (line 24) | class LJSpeech(Dataset): method __init__ (line 27) | def __init__(self, root): method __getitem__ (line 42) | def __getitem__(self, i): method __len__ (line 48) | def __len__(self): class LJSpeechCollector (line 52) | class LJSpeechCollector(object): method __init__ (line 55) | def __init__(self, padding_value=0.): method __call__ (line 58) | def __call__(self, examples): class LJSpeechClipCollector (line 66) | class LJSpeechClipCollector(object): method __init__ (line 67) | def __init__(self, clip_frames=65, hop_length=256): method __call__ (line 71) | def __call__(self, examples): method clip (line 82) | def clip(self, example): FILE: paddlespeech/t2s/exps/waveflow/preprocess.py class Transform (line 28) | class Transform(object): method __init__ (line 29) | def __init__(self, sample_rate, n_fft, win_length, hop_length, n_mels,... method __call__ (line 41) | def __call__(self, example): function create_dataset (line 95) | def create_dataset(config, input_dir, output_dir): FILE: paddlespeech/t2s/exps/waveflow/synthesize.py function main (line 27) | def main(config, args): FILE: paddlespeech/t2s/exps/waveflow/train.py class Experiment (line 34) | class Experiment(ExperimentBase): method setup_model (line 35) | def setup_model(self): method setup_dataloader (line 56) | def setup_dataloader(self): method compute_outputs (line 92) | def compute_outputs(self, mel, wav): method train_batch (line 97) | def train_batch(self): method valid (line 123) | def valid(self): function main_sp (line 134) | def main_sp(config, args): function main (line 141) | def main(config, args): FILE: paddlespeech/t2s/exps/wavernn/synthesize.py function main (line 31) | def main(): FILE: paddlespeech/t2s/exps/wavernn/train.py function train_sp (line 42) | def train_sp(args, config): function main (line 179) | def main(): FILE: paddlespeech/t2s/frontend/arpabet.py class ARPABET (line 27) | class ARPABET(Phonetics): method __repr__ (line 141) | def __repr__(self): method __init__ (line 145) | def __init__(self): method _remove_vowels (line 150) | def _remove_vowels(self, phone): method phoneticize (line 153) | def phoneticize(self, sentence, add_start_end=False): method numericalize (line 172) | def numericalize(self, phonemes): method reverse (line 185) | def reverse(self, ids): method __call__ (line 197) | def __call__(self, sentence, add_start_end=False): method vocab_size (line 210) | def vocab_size(self): class ARPABETWithStress (line 217) | class ARPABETWithStress(Phonetics): method __repr__ (line 235) | def __repr__(self): method __init__ (line 239) | def __init__(self): method phoneticize (line 243) | def phoneticize(self, sentence, add_start_end=False): method numericalize (line 260) | def numericalize(self, phonemes): method reverse (line 272) | def reverse(self, ids): method __call__ (line 282) | def __call__(self, sentence, add_start_end=False): method vocab_size (line 294) | def vocab_size(self): FILE: paddlespeech/t2s/frontend/canton_frontend.py function jyuping_to_phonemes (line 32) | def jyuping_to_phonemes(cantons: List[str]): class CantonFrontend (line 48) | class CantonFrontend(): method __init__ (line 49) | def __init__(self, phone_vocab_path: str): method _g2p (line 61) | def _g2p(self, sentences: List[str], method _p2id (line 73) | def _p2id(self, phonemes: List[str]) -> np.ndarray: method get_phonemes (line 81) | def get_phonemes(self, method get_input_ids (line 101) | def get_input_ids(self, FILE: paddlespeech/t2s/frontend/g2pw/dataset.py function prepare_onnx_input (line 29) | def prepare_onnx_input(tokenizer, function _truncate_texts (line 99) | def _truncate_texts(window_size: int, texts: List[str], function _truncate (line 114) | def _truncate(max_len: int, function get_phoneme_labels (line 146) | def get_phoneme_labels(polyphonic_chars: List[List[str]] function get_char_phoneme_labels (line 157) | def get_char_phoneme_labels(polyphonic_chars: List[List[str]] FILE: paddlespeech/t2s/frontend/g2pw/onnx_api.py function get_g2pw_model_path (line 44) | def get_g2pw_model_path(model_dir: os.PathLike, model_version: str) -> str: function predict (line 71) | def predict(session, onnx_input: Dict[str, Any], class G2PWOnnxConverter (line 94) | class G2PWOnnxConverter: method __init__ (line 95) | def __init__(self, method _convert_bopomofo_to_pinyin (line 181) | def _convert_bopomofo_to_pinyin(self, bopomofo: str) -> str: method __call__ (line 191) | def __call__(self, sentences: List[str]) -> List[List[str]]: method _prepare_data (line 232) | def _prepare_data( FILE: paddlespeech/t2s/frontend/g2pw/utils.py function wordize_and_map (line 22) | def wordize_and_map(text: str): function tokenize_and_map (line 58) | def tokenize_and_map(tokenizer, text: str): function _load_config (line 86) | def _load_config(config_path: os.PathLike): function load_config (line 134) | def load_config(config_path: os.PathLike, use_default: bool=False): FILE: paddlespeech/t2s/frontend/generate_lexicon.py function rule (line 40) | def rule(C, V, R, T): function generate_lexicon (line 147) | def generate_lexicon(with_tone=False, with_erhua=False): FILE: paddlespeech/t2s/frontend/mix_frontend.py class MixFrontend (line 26) | class MixFrontend(): method __init__ (line 27) | def __init__(self, method is_chinese (line 38) | def is_chinese(self, char): method is_alphabet (line 44) | def is_alphabet(self, char): method is_other (line 51) | def is_other(self, char): method split_by_lang (line 57) | def split_by_lang(self, text: str) -> List[str]: method get_input_ids (line 103) | def get_input_ids(self, FILE: paddlespeech/t2s/frontend/normalizer/normalizer.py function normalize (line 21) | def normalize(sentence): FILE: paddlespeech/t2s/frontend/normalizer/numbers.py function _remove_commas (line 28) | def _remove_commas(m): function _expand_decimal_point (line 32) | def _expand_decimal_point(m): function _expand_dollars (line 36) | def _expand_dollars(m): function _expand_ordinal (line 57) | def _expand_ordinal(m): function _expand_number (line 61) | def _expand_number(m): function normalize_numbers (line 77) | def normalize_numbers(text): FILE: paddlespeech/t2s/frontend/normalizer/width.py function full2half_width (line 16) | def full2half_width(ustr): function half2full_width (line 29) | def half2full_width(ustr): FILE: paddlespeech/t2s/frontend/phonectic.py class Phonetics (line 34) | class Phonetics(ABC): method __call__ (line 36) | def __call__(self, sentence): method phoneticize (line 40) | def phoneticize(self, sentence): method numericalize (line 44) | def numericalize(self, phonemes): class English (line 48) | class English(Phonetics): method __init__ (line 70) | def __init__(self, phone_vocab_path=None): method phoneticize (line 85) | def phoneticize(self, sentence): method _p2id (line 100) | def _p2id(self, phonemes: List[str]) -> np.array: method get_input_ids (line 104) | def get_input_ids(self, method numericalize (line 146) | def numericalize(self, phonemes): method reverse (line 159) | def reverse(self, ids): method __call__ (line 168) | def __call__(self, sentence): method vocab_size (line 178) | def vocab_size(self): class EnglishCharacter (line 184) | class EnglishCharacter(Phonetics): method __init__ (line 188) | def __init__(self): method phoneticize (line 194) | def phoneticize(self, sentence): method numericalize (line 204) | def numericalize(self, sentence): method reverse (line 218) | def reverse(self, ids): method __call__ (line 227) | def __call__(self, sentence): method vocab_size (line 237) | def vocab_size(self): class Chinese (line 243) | class Chinese(Phonetics): method __init__ (line 247) | def __init__(self): method _get_all_syllables (line 254) | def _get_all_syllables(self): method phoneticize (line 260) | def phoneticize(self, sentence): method _filter_symbols (line 277) | def _filter_symbols(self, phonemes): method numericalize (line 288) | def numericalize(self, phonemes): method __call__ (line 298) | def __call__(self, sentence): method vocab_size (line 308) | def vocab_size(self): method reverse (line 313) | def reverse(self, ids): FILE: paddlespeech/t2s/frontend/polyphonic.py class Polyphonic (line 19) | class Polyphonic(): method __init__ (line 20) | def __init__(self): method correct_pronunciation (line 31) | def correct_pronunciation(self, word, pinyin): FILE: paddlespeech/t2s/frontend/punctuation.py function get_punctuations (line 30) | def get_punctuations(lang): FILE: paddlespeech/t2s/frontend/rhy_prediction/rhy_predictor.py class RhyPredictor (line 34) | class RhyPredictor(): method __init__ (line 35) | def __init__( method _clean_text (line 56) | def _clean_text(self, text): method preprocess (line 62) | def preprocess(self, text, tokenizer): method get_prediction (line 73) | def get_prediction(self, raw_text): method make_rhy_dict (line 92) | def make_rhy_dict(self): method pinyin_align (line 97) | def pinyin_align(self, pinyins, rhy_pre): FILE: paddlespeech/t2s/frontend/sing_frontend.py class SingFrontend (line 24) | class SingFrontend(): method __init__ (line 25) | def __init__(self, pinyin_phone_path: str, phone_vocab_path: str): method get_phones (line 50) | def get_phones(self, sentence: str) -> List[int]: method get_note_info (line 85) | def get_note_info(self, note_info: str) -> List[str]: method process (line 89) | def process( method get_input_ids (line 121) | def get_input_ids(self, svs_input: Dict[str, str], FILE: paddlespeech/t2s/frontend/ssml/xml_processor.py class MixTextProcessor (line 36) | class MixTextProcessor(): method __repr__ (line 37) | def __repr__(self): method get_xml_content (line 40) | def get_xml_content(self, mixstr): method get_content_split (line 49) | def get_content_split(self, mixstr): method get_pinyin_split (line 71) | def get_pinyin_split(self, mixstr): method get_dom_split (line 102) | def get_dom_split(self, mixstr): class DomXml (line 128) | class DomXml(): method __init__ (line 129) | def __init__(self, xmlstr): method get_text (line 134) | def get_text(self): method get_xmlchild_list (line 154) | def get_xmlchild_list(self): method get_pinyins_for_xml (line 174) | def get_pinyins_for_xml(self): method get_all_tags (line 202) | def get_all_tags(self, tag_name): method get_text_and_sayas_tags (line 210) | def get_text_and_sayas_tags(self): FILE: paddlespeech/t2s/frontend/tone_sandhi.py class ToneSandhi (line 22) | class ToneSandhi(): method __repr__ (line 23) | def __repr__(self): method __init__ (line 26) | def __init__(self): method _split_word (line 75) | def _split_word(self, word: str) -> List[str]: method _neural_sandhi (line 93) | def _neural_sandhi(self, word: str, pos: str, method _bu_sandhi (line 137) | def _bu_sandhi(self, word: str, finals: List[str]) -> List[str]: method _yi_sandhi (line 149) | def _yi_sandhi(self, word: str, finals: List[str]) -> List[str]: method _all_tone_three (line 173) | def _all_tone_three(self, finals: List[str]) -> bool: method _three_sandhi (line 176) | def _three_sandhi(self, word: str, finals: List[str]) -> List[str]: method _merge_bu (line 218) | def _merge_bu(self, seg: List[Tuple[str, str]]) -> List[Tuple[str, str]]: method _merge_yi (line 238) | def _merge_yi(self, seg: List[Tuple[str, str]]) -> List[Tuple[str, str]]: method _merge_continuous_three_tones (line 264) | def _merge_continuous_three_tones( method _is_reduplication (line 295) | def _is_reduplication(self, word: str) -> bool: method _merge_continuous_three_tones_2 (line 299) | def _merge_continuous_three_tones_2( method _merge_er (line 327) | def _merge_er(self, seg: List[Tuple[str, str]]) -> List[Tuple[str, str]]: method _merge_reduplication (line 336) | def _merge_reduplication( method pre_merge_for_modify (line 346) | def pre_merge_for_modify( method modified_tone (line 359) | def modified_tone(self, word: str, pos: str, FILE: paddlespeech/t2s/frontend/vocab.py class Vocab (line 20) | class Vocab(object): method __init__ (line 31) | def __init__(self, method __len__ (line 56) | def __len__(self): method num_specials (line 60) | def num_specials(self): method padding_index (line 67) | def padding_index(self): method unk_index (line 73) | def unk_index(self): method start_index (line 79) | def start_index(self): method end_index (line 85) | def end_index(self): method __repr__ (line 90) | def __repr__(self): method __str__ (line 94) | def __str__(self): method lookup (line 97) | def lookup(self, symbol): method reverse (line 102) | def reverse(self, index): method add_symbol (line 107) | def add_symbol(self, symbol): method add_symbols (line 116) | def add_symbols(self, symbols): FILE: paddlespeech/t2s/frontend/zh_frontend.py function intersperse (line 50) | def intersperse(lst, item): function insert_after_character (line 56) | def insert_after_character(lst, item): class Frontend (line 72) | class Frontend(): method __init__ (line 73) | def __init__(self, method _init_pypinyin (line 156) | def _init_pypinyin(self): method _get_initials_finals (line 165) | def _get_initials_finals(self, word: str) -> List[List[str]]: method _merge_erhua (line 211) | def _merge_erhua(self, method _g2p (line 250) | def _g2p(self, method _p2id (line 405) | def _p2id(self, phonemes: List[str]) -> np.ndarray: method _t2id (line 416) | def _t2id(self, tones: List[str]) -> np.ndarray: method _get_phone_tone (line 425) | def _get_phone_tone(self, phonemes: List[str], method get_phonemes (line 470) | def get_phonemes(self, method _split_word_to_char (line 508) | def _split_word_to_char(self, words): method _g2p_assign (line 515) | def _g2p_assign(self, method get_phonemes_ssml (line 579) | def get_phonemes_ssml(self, method add_sp_if_no (line 637) | def add_sp_if_no(self, phonemes): method get_input_ids (line 645) | def get_input_ids(self, method get_input_ids_ssml (line 699) | def get_input_ids_ssml( FILE: paddlespeech/t2s/frontend/zh_normalization/char_convert.py function tranditional_to_simplified (line 30) | def tranditional_to_simplified(text: str) -> str: function simplified_to_traditional (line 35) | def simplified_to_traditional(text: str) -> str: FILE: paddlespeech/t2s/frontend/zh_normalization/chronology.py function _time_num2str (line 22) | def _time_num2str(num_string: str) -> str: function replace_time (line 45) | def replace_time(match) -> str: function replace_date (line 92) | def replace_date(match) -> str: function replace_date2 (line 117) | def replace_date2(match) -> str: FILE: paddlespeech/t2s/frontend/zh_normalization/num.py function replace_frac (line 37) | def replace_frac(match) -> str: function replace_percentage (line 58) | def replace_percentage(match) -> str: function replace_negative_num (line 78) | def replace_negative_num(match) -> str: function replace_default_num (line 98) | def replace_default_num(match): function replace_positive_quantifier (line 117) | def replace_positive_quantifier(match) -> str: function replace_number (line 135) | def replace_number(match) -> str: function replace_range (line 161) | def replace_range(match) -> str: function _get_value (line 175) | def _get_value(value_string: str, use_zero: bool=True) -> List[str]: function verbalize_cardinal (line 193) | def verbalize_cardinal(value_string: str) -> str: function verbalize_digit (line 210) | def verbalize_digit(value_string: str, alt_one=False) -> str: function num2str (line 218) | def num2str(value_string: str) -> str: FILE: paddlespeech/t2s/frontend/zh_normalization/phonecode.py function phone2str (line 33) | def phone2str(phone_string: str, mobile=True) -> str: function replace_phone (line 46) | def replace_phone(match) -> str: function replace_mobile (line 56) | def replace_mobile(match) -> str: FILE: paddlespeech/t2s/frontend/zh_normalization/quantifier.py function replace_temperature (line 44) | def replace_temperature(match) -> str: function replace_measure (line 61) | def replace_measure(sentence) -> str: FILE: paddlespeech/t2s/frontend/zh_normalization/text_normlization.py class TextNormalizer (line 53) | class TextNormalizer(): method __init__ (line 54) | def __init__(self): method _split (line 57) | def _split(self, text: str, lang="zh") -> List[str]: method _post_replace (line 74) | def _post_replace(self, sentence: str) -> str: method normalize_sentence (line 117) | def normalize_sentence(self, sentence: str) -> str: method normalize (line 151) | def normalize(self, text: str) -> List[str]: FILE: paddlespeech/t2s/models/diffsinger/diffsinger.py class DiffSinger (line 30) | class DiffSinger(nn.Layer): method __init__ (line 44) | def __init__( method forward (line 177) | def forward( method inference (line 261) | def inference( class DiffSingerInference (line 302) | class DiffSingerInference(nn.Layer): method __init__ (line 303) | def __init__(self, normalizer, model): method forward (line 308) | def forward(self, text, note, note_dur, is_slur, get_mel_fs2: bool=Fal... class DiffusionLoss (line 336) | class DiffusionLoss(nn.Layer): method __init__ (line 340) | def __init__(self, use_masking: bool=True, method forward (line 359) | def forward( FILE: paddlespeech/t2s/models/diffsinger/diffsinger_updater.py class DiffSingerUpdater (line 36) | class DiffSingerUpdater(StandardUpdater): method __init__ (line 37) | def __init__(self, method update_core (line 71) | def update_core(self, batch): class DiffSingerEvaluator (line 185) | class DiffSingerEvaluator(StandardEvaluator): method __init__ (line 186) | def __init__( method evaluate_core (line 207) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/diffsinger/fastspeech2midi.py class FastSpeech2MIDI (line 32) | class FastSpeech2MIDI(FastSpeech2): method __init__ (line 37) | def __init__( method forward (line 83) | def forward( method _forward (line 164) | def _forward( method encoder_infer (line 322) | def encoder_infer( method encoder_infer_batch (line 358) | def encoder_infer_batch( method inference (line 402) | def inference( class FastSpeech2MIDILoss (line 495) | class FastSpeech2MIDILoss(FastSpeech2Loss): method __init__ (line 499) | def __init__(self, use_masking: bool=True, method forward (line 510) | def forward( FILE: paddlespeech/t2s/models/ernie_sat/ernie_sat.py class mySequential (line 43) | class mySequential(nn.Sequential): method forward (line 44) | def forward(self, *inputs): class MaskInputLayer (line 53) | class MaskInputLayer(nn.Layer): method __init__ (line 54) | def __init__(self, out_features: int) -> None: method forward (line 62) | def forward(self, input: paddle.Tensor, class MLMEncoder (line 70) | class MLMEncoder(nn.Layer): method __init__ (line 124) | def __init__(self, method forward (line 296) | def forward(self, class MLMDecoder (line 340) | class MLMDecoder(MLMEncoder): method forward (line 341) | def forward(self, xs: paddle.Tensor, masks: paddle.Tensor): class MLM (line 369) | class MLM(nn.Layer): method __init__ (line 370) | def __init__(self, method inference (line 408) | def inference( class MLMEncAsDecoder (line 465) | class MLMEncAsDecoder(MLM): method forward (line 466) | def forward(self, class MLMDualMaksing (line 504) | class MLMDualMaksing(MLM): method forward (line 505) | def forward(self, class ErnieSAT (line 548) | class ErnieSAT(nn.Layer): method __init__ (line 549) | def __init__( method forward (line 667) | def forward(self, method inference (line 684) | def inference( class ErnieSATInference (line 707) | class ErnieSATInference(nn.Layer): method __init__ (line 708) | def __init__(self, normalizer, model): method forward (line 713) | def forward( FILE: paddlespeech/t2s/models/ernie_sat/ernie_sat_updater.py class ErnieSATUpdater (line 34) | class ErnieSATUpdater(StandardUpdater): method __init__ (line 35) | def __init__(self, method update_core (line 57) | def update_core(self, batch): class ErnieSATEvaluator (line 103) | class ErnieSATEvaluator(StandardEvaluator): method __init__ (line 104) | def __init__(self, method evaluate_core (line 122) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/fastspeech2/fastspeech2.py class FastSpeech2 (line 45) | class FastSpeech2(nn.Layer): method __init__ (line 65) | def __init__( method forward (line 520) | def forward( method _forward (line 593) | def _forward(self, method encoder_infer (line 711) | def encoder_infer( method inference (line 745) | def inference( method _integrate_with_spk_embed (line 827) | def _integrate_with_spk_embed(self, hs, spk_emb): method _integrate_with_tone_embed (line 857) | def _integrate_with_tone_embed(self, hs, tone_embs): method _source_mask (line 883) | def _source_mask(self, ilens: paddle.Tensor) -> paddle.Tensor: method _reset_parameters (line 903) | def _reset_parameters(self, init_enc_alpha: float, init_dec_alpha: flo... class FastSpeech2Inference (line 922) | class FastSpeech2Inference(nn.Layer): method __init__ (line 923) | def __init__(self, normalizer, model): method forward (line 928) | def forward(self, text, spk_id=None, spk_emb=None): class StyleFastSpeech2Inference (line 935) | class StyleFastSpeech2Inference(FastSpeech2Inference): method __init__ (line 936) | def __init__(self, method denorm (line 951) | def denorm(self, data, mean, std): method norm (line 954) | def norm(self, data, mean, std): method forward (line 957) | def forward(self, class FastSpeech2Loss (line 1071) | class FastSpeech2Loss(nn.Layer): method __init__ (line 1075) | def __init__(self, use_masking: bool=True, method forward (line 1097) | def forward( FILE: paddlespeech/t2s/models/fastspeech2/fastspeech2_updater.py class FastSpeech2Updater (line 35) | class FastSpeech2Updater(StandardUpdater): method __init__ (line 36) | def __init__( method update_core (line 61) | def update_core(self, batch): class FastSpeech2Evaluator (line 142) | class FastSpeech2Evaluator(StandardEvaluator): method __init__ (line 143) | def __init__(self, method evaluate_core (line 164) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/hifigan/hifigan.py class HiFiGANGenerator (line 30) | class HiFiGANGenerator(nn.Layer): method __init__ (line 33) | def __init__( method forward (line 187) | def forward(self, c, g: Optional[paddle.Tensor]=None): method reset_parameters (line 232) | def reset_parameters(self): method apply_weight_norm (line 247) | def apply_weight_norm(self): method remove_weight_norm (line 258) | def remove_weight_norm(self): method inference (line 271) | def inference(self, c, g: Optional[paddle.Tensor]=None): class HiFiGANPeriodDiscriminator (line 288) | class HiFiGANPeriodDiscriminator(nn.Layer): method __init__ (line 291) | def __init__( method forward (line 383) | def forward(self, x): method apply_weight_norm (line 411) | def apply_weight_norm(self): method apply_spectral_norm (line 422) | def apply_spectral_norm(self): class HiFiGANMultiPeriodDiscriminator (line 432) | class HiFiGANMultiPeriodDiscriminator(nn.Layer): method __init__ (line 435) | def __init__( method forward (line 473) | def forward(self, x): class HiFiGANScaleDiscriminator (line 489) | class HiFiGANScaleDiscriminator(nn.Layer): method __init__ (line 492) | def __init__( method forward (line 616) | def forward(self, x): method apply_weight_norm (line 631) | def apply_weight_norm(self): method apply_spectral_norm (line 642) | def apply_spectral_norm(self): class HiFiGANMultiScaleDiscriminator (line 652) | class HiFiGANMultiScaleDiscriminator(nn.Layer): method __init__ (line 655) | def __init__( method forward (line 712) | def forward(self, x): class HiFiGANMultiScaleMultiPeriodDiscriminator (line 729) | class HiFiGANMultiScaleMultiPeriodDiscriminator(nn.Layer): method __init__ (line 732) | def __init__( method forward (line 810) | def forward(self, x): class HiFiGANInference (line 827) | class HiFiGANInference(nn.Layer): method __init__ (line 828) | def __init__(self, normalizer, hifigan_generator): method forward (line 833) | def forward(self, logmel): FILE: paddlespeech/t2s/models/hifigan/hifigan_updater.py class HiFiGANUpdater (line 35) | class HiFiGANUpdater(StandardUpdater): method __init__ (line 36) | def __init__(self, method update_core (line 84) | def update_core(self, batch): class HiFiGANEvaluator (line 162) | class HiFiGANEvaluator(StandardEvaluator): method __init__ (line 163) | def __init__(self, method evaluate_core (line 193) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/jets/alignments.py class AlignmentModule (line 28) | class AlignmentModule(nn.Layer): method __init__ (line 33) | def __init__(self, adim, odim): method forward (line 42) | def forward(self, text, feats, x_masks=None): function _monotonic_alignment_search (line 76) | def _monotonic_alignment_search(log_p_attn): function viterbi_decode (line 108) | def viterbi_decode(log_p_attn, text_lengths, feats_lengths): function _average_by_duration (line 143) | def _average_by_duration(ds, xs, text_lengths, feats_lengths): function average_by_duration (line 163) | def average_by_duration(ds, xs, text_lengths, feats_lengths): FILE: paddlespeech/t2s/models/jets/generator.py class JETSGenerator (line 51) | class JETSGenerator(nn.Layer): method __init__ (line 55) | def __init__( method forward (line 557) | def forward( method inference (line 710) | def inference( method _integrate_with_spk_embed (line 807) | def _integrate_with_spk_embed(self, method _generate_path (line 834) | def _generate_path(self, dur: paddle.Tensor, method _source_mask (line 865) | def _source_mask(self, ilens: paddle.Tensor) -> paddle.Tensor: method _reset_parameters (line 885) | def _reset_parameters(self, FILE: paddlespeech/t2s/models/jets/jets.py class JETS (line 59) | class JETS(nn.Layer): method __init__ (line 68) | def __init__( method forward (line 267) | def forward( method _forward_generator (line 343) | def _forward_generator( method _forward_discrminator (line 414) | def _forward_discrminator( method inference (line 486) | def inference(self, method reset_parameters (line 539) | def reset_parameters(self): class JETSInference (line 573) | class JETSInference(nn.Layer): method __init__ (line 574) | def __init__(self, model): method forward (line 578) | def forward(self, text, sids=None): FILE: paddlespeech/t2s/models/jets/jets_updater.py class JETSUpdater (line 42) | class JETSUpdater(StandardUpdater): method __init__ (line 43) | def __init__(self, method update_core (line 111) | def update_core(self, batch): class JETSEvaluator (line 257) | class JETSEvaluator(StandardEvaluator): method __init__ (line 258) | def __init__(self, method evaluate_core (line 305) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/jets/length_regulator.py class GaussianUpsampling (line 26) | class GaussianUpsampling(nn.Layer): method __init__ (line 32) | def __init__(self, delta=0.1): method forward (line 36) | def forward(self, hs, ds, h_masks=None, d_masks=None): FILE: paddlespeech/t2s/models/melgan/melgan.py class MelGANGenerator (line 32) | class MelGANGenerator(nn.Layer): method __init__ (line 35) | def __init__( method forward (line 207) | def forward(self, c): method apply_weight_norm (line 219) | def apply_weight_norm(self): method remove_weight_norm (line 230) | def remove_weight_norm(self): method reset_parameters (line 243) | def reset_parameters(self): method inference (line 258) | def inference(self, c): class MelGANDiscriminator (line 278) | class MelGANDiscriminator(nn.Layer): method __init__ (line 281) | def __init__( method forward (line 390) | def forward(self, x): class MelGANMultiScaleDiscriminator (line 406) | class MelGANMultiScaleDiscriminator(nn.Layer): method __init__ (line 409) | def __init__( method forward (line 506) | def forward(self, x): method apply_weight_norm (line 521) | def apply_weight_norm(self): method remove_weight_norm (line 532) | def remove_weight_norm(self): method reset_parameters (line 545) | def reset_parameters(self): class MelGANInference (line 562) | class MelGANInference(nn.Layer): method __init__ (line 563) | def __init__(self, normalizer, melgan_generator): method forward (line 568) | def forward(self, logmel): FILE: paddlespeech/t2s/models/melgan/multi_band_melgan_updater.py class MBMelGANUpdater (line 36) | class MBMelGANUpdater(StandardUpdater): method __init__ (line 37) | def __init__(self, method update_core (line 83) | def update_core(self, batch): class MBMelGANEvaluator (line 169) | class MBMelGANEvaluator(StandardEvaluator): method __init__ (line 170) | def __init__(self, method evaluate_core (line 199) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/melgan/style_melgan.py class StyleMelGANGenerator (line 33) | class StyleMelGANGenerator(nn.Layer): method __init__ (line 36) | def __init__( method forward (line 148) | def forward(self, c, z=None): method apply_weight_norm (line 167) | def apply_weight_norm(self): method remove_weight_norm (line 178) | def remove_weight_norm(self): method reset_parameters (line 193) | def reset_parameters(self): method inference (line 208) | def inference(self, c): class StyleMelGANDiscriminator (line 242) | class StyleMelGANDiscriminator(nn.Layer): method __init__ (line 245) | def __init__( method forward (line 319) | def forward(self, x): method _forward (line 333) | def _forward(self, x): method apply_weight_norm (line 347) | def apply_weight_norm(self): method remove_weight_norm (line 358) | def remove_weight_norm(self): method reset_parameters (line 371) | def reset_parameters(self): class StyleMelGANInference (line 387) | class StyleMelGANInference(nn.Layer): method __init__ (line 388) | def __init__(self, normalizer, style_melgan_generator): method forward (line 393) | def forward(self, logmel): FILE: paddlespeech/t2s/models/melgan/style_melgan_updater.py class StyleMelGANUpdater (line 36) | class StyleMelGANUpdater(StandardUpdater): method __init__ (line 37) | def __init__(self, method update_core (line 81) | def update_core(self, batch): class StyleMelGANEvaluator (line 151) | class StyleMelGANEvaluator(StandardEvaluator): method __init__ (line 152) | def __init__(self, method evaluate_core (line 179) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan.py class PWGGenerator (line 31) | class PWGGenerator(nn.Layer): method __init__ (line 76) | def __init__( method forward (line 162) | def forward(self, x, c): method apply_weight_norm (line 188) | def apply_weight_norm(self): method remove_weight_norm (line 199) | def remove_weight_norm(self): method inference (line 212) | def inference(self, c=None): class PWGDiscriminator (line 233) | class PWGDiscriminator(nn.Layer): method __init__ (line 261) | def __init__( method forward (line 317) | def forward(self, x): method apply_weight_norm (line 329) | def apply_weight_norm(self): method remove_weight_norm (line 336) | def remove_weight_norm(self): class ResidualPWGDiscriminator (line 346) | class ResidualPWGDiscriminator(nn.Layer): method __init__ (line 381) | def __init__( method forward (line 445) | def forward(self, x): method apply_weight_norm (line 465) | def apply_weight_norm(self): method remove_weight_norm (line 472) | def remove_weight_norm(self): class PWGInference (line 482) | class PWGInference(nn.Layer): method __init__ (line 483) | def __init__(self, normalizer, pwg_generator): method forward (line 488) | def forward(self, logmel): FILE: paddlespeech/t2s/models/parallel_wavegan/parallel_wavegan_updater.py class PWGUpdater (line 37) | class PWGUpdater(StandardUpdater): method __init__ (line 38) | def __init__(self, method update_core (line 81) | def update_core(self, batch): class PWGEvaluator (line 151) | class PWGEvaluator(StandardEvaluator): method __init__ (line 152) | def __init__(self, method evaluate_core (line 178) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/speedyspeech/speedyspeech.py class ResidualBlock (line 24) | class ResidualBlock(nn.Layer): method __init__ (line 25) | def __init__(self, method forward (line 61) | def forward(self, x: paddle.Tensor): class TextEmbedding (line 72) | class TextEmbedding(nn.Layer): method __init__ (line 73) | def __init__(self, method forward (line 94) | def forward(self, text: paddle.Tensor, tone: paddle.Tensor=None): class SpeedySpeechEncoder (line 116) | class SpeedySpeechEncoder(nn.Layer): method __init__ (line 133) | def __init__(self, method forward (line 171) | def forward(self, class DurationPredictor (line 199) | class DurationPredictor(nn.Layer): method __init__ (line 200) | def __init__(self, hidden_size: int=128): method forward (line 208) | def forward(self, x: paddle.Tensor): class SpeedySpeechDecoder (line 222) | class SpeedySpeechDecoder(nn.Layer): method __init__ (line 223) | def __init__(self, method forward (line 251) | def forward(self, x): class SpeedySpeech (line 267) | class SpeedySpeech(nn.Layer): method __init__ (line 268) | def __init__( method forward (line 334) | def forward(self, method inference (line 372) | def inference(self, class SpeedySpeechInference (line 414) | class SpeedySpeechInference(nn.Layer): method __init__ (line 415) | def __init__(self, normalizer, speedyspeech_model): method forward (line 420) | def forward(self, phones, tones, spk_id=None, durations=None): FILE: paddlespeech/t2s/models/speedyspeech/speedyspeech_updater.py class SpeedySpeechUpdater (line 37) | class SpeedySpeechUpdater(StandardUpdater): method __init__ (line 38) | def __init__(self, method update_core (line 52) | def update_core(self, batch): class SpeedySpeechEvaluator (line 111) | class SpeedySpeechEvaluator(StandardEvaluator): method __init__ (line 112) | def __init__(self, method evaluate_core (line 124) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/starganv2_vc/AuxiliaryASR/layers.py function _get_activation_fn (line 23) | def _get_activation_fn(activ): class LinearNorm (line 35) | class LinearNorm(nn.Layer): method __init__ (line 36) | def __init__(self, method forward (line 46) | def forward(self, x: paddle.Tensor): class ConvNorm (line 51) | class ConvNorm(nn.Layer): method __init__ (line 52) | def __init__(self, method forward (line 79) | def forward(self, signal: paddle.Tensor): class ConvBlock (line 84) | class ConvBlock(nn.Layer): method __init__ (line 85) | def __init__(self, method forward (line 100) | def forward(self, x: paddle.Tensor): method _get_conv (line 107) | def _get_conv(self, class LocationLayer (line 127) | class LocationLayer(nn.Layer): method __init__ (line 128) | def __init__(self, method forward (line 148) | def forward(self, attention_weights_cat: paddle.Tensor): class Attention (line 155) | class Attention(nn.Layer): method __init__ (line 156) | def __init__(self, method get_alignment_energies (line 180) | def get_alignment_energies(self, method forward (line 206) | def forward(self, class MFCC (line 240) | class MFCC(nn.Layer): method __init__ (line 241) | def __init__(self, n_mfcc: int=40, n_mels: int=80): method forward (line 249) | def forward(self, mel_specgram: paddle.Tensor): FILE: paddlespeech/t2s/models/starganv2_vc/AuxiliaryASR/model.py class ASRCNN (line 29) | class ASRCNN(nn.Layer): method __init__ (line 30) | def __init__( method forward (line 66) | def forward(self, method get_feature (line 85) | def get_feature(self, x: paddle.Tensor): method length_to_mask (line 92) | def length_to_mask(self, lengths: paddle.Tensor): method get_future_mask (line 98) | def get_future_mask(self, out_length: int, unmask_future_steps: int=0): method reset_parameters (line 115) | def reset_parameters(self): class ASRS2S (line 119) | class ASRS2S(nn.Layer): method __init__ (line 120) | def __init__(self, method initialize_decoder_states (line 146) | def initialize_decoder_states(self, method forward (line 167) | def forward(self, method decode (line 208) | def decode(self, decoder_input: paddle.Tensor): method parse_decoder_outputs (line 234) | def parse_decoder_outputs(self, method reset_parameters (line 246) | def reset_parameters(self): FILE: paddlespeech/t2s/models/starganv2_vc/JDCNet/model.py class JDCNet (line 24) | class JDCNet(nn.Layer): method __init__ (line 29) | def __init__(self, method get_feature_GAN (line 77) | def get_feature_GAN(self, x: paddle.Tensor): method forward (line 98) | def forward(self, x: paddle.Tensor): method init_weights (line 143) | def init_weights(m): class ResBlock (line 158) | class ResBlock(nn.Layer): method __init__ (line 159) | def __init__(self, method forward (line 197) | def forward(self, x: paddle.Tensor): FILE: paddlespeech/t2s/models/starganv2_vc/losses.py function compute_d_loss (line 25) | def compute_d_loss( function compute_g_loss (line 93) | def compute_g_loss(nets: Dict[str, Any], function log_norm (line 205) | def log_norm(x: paddle.Tensor, mean: float=-4, std: float=4, axis: int=2): function adv_loss (line 214) | def adv_loss(logits: paddle.Tensor, target: float): function r1_reg (line 225) | def r1_reg(d_out: paddle.Tensor, x_in: paddle.Tensor): function compute_mean_f0 (line 241) | def compute_mean_f0(f0: paddle.Tensor): function f0_loss (line 248) | def f0_loss(x_f0: paddle.Tensor, y_f0: paddle.Tensor): FILE: paddlespeech/t2s/models/starganv2_vc/starganv2_vc.py class DownSample (line 31) | class DownSample(nn.Layer): method __init__ (line 32) | def __init__(self, layer_type: str): method forward (line 36) | def forward(self, x: paddle.Tensor): class UpSample (line 60) | class UpSample(nn.Layer): method __init__ (line 61) | def __init__(self, layer_type: str): method forward (line 65) | def forward(self, x: paddle.Tensor): class ResBlk (line 89) | class ResBlk(nn.Layer): method __init__ (line 90) | def __init__(self, method _build_weights (line 103) | def _build_weights(self, dim_in: int, dim_out: int): method _shortcut (line 128) | def _shortcut(self, x: paddle.Tensor): method _residual (line 135) | def _residual(self, x: paddle.Tensor): method forward (line 147) | def forward(self, x: paddle.Tensor): class AdaIN (line 163) | class AdaIN(nn.Layer): method __init__ (line 164) | def __init__(self, style_dim: int, num_features: int): method forward (line 170) | def forward(self, x: paddle.Tensor, s: paddle.Tensor): class AdainResBlk (line 188) | class AdainResBlk(nn.Layer): method __init__ (line 189) | def __init__(self, method _build_weights (line 204) | def _build_weights(self, dim_in: int, dim_out: int, style_dim: int=64): method _shortcut (line 228) | def _shortcut(self, x: paddle.Tensor): method _residual (line 234) | def _residual(self, x: paddle.Tensor, s: paddle.Tensor): method forward (line 244) | def forward(self, x: paddle.Tensor, s: paddle.Tensor): class HighPass (line 263) | class HighPass(nn.Layer): method __init__ (line 264) | def __init__(self, w_hpf: int): method forward (line 269) | def forward(self, x: paddle.Tensor): class Generator (line 276) | class Generator(nn.Layer): method __init__ (line 277) | def __init__(self, method forward (line 362) | def forward(self, method reset_parameters (line 406) | def reset_parameters(self): class MappingNetwork (line 410) | class MappingNetwork(nn.Layer): method __init__ (line 411) | def __init__(self, method forward (line 439) | def forward(self, z: paddle.Tensor, y: paddle.Tensor): method reset_parameters (line 461) | def reset_parameters(self): class StyleEncoder (line 465) | class StyleEncoder(nn.Layer): method __init__ (line 466) | def __init__(self, method forward (line 507) | def forward(self, x: paddle.Tensor, y: paddle.Tensor): method reset_parameters (line 530) | def reset_parameters(self): class Discriminator (line 534) | class Discriminator(nn.Layer): method __init__ (line 535) | def __init__(self, method forward (line 557) | def forward(self, x: paddle.Tensor, y: paddle.Tensor): method classifier (line 571) | def classifier(self, x: paddle.Tensor): method reset_parameters (line 575) | def reset_parameters(self): class Discriminator2D (line 579) | class Discriminator2D(nn.Layer): method __init__ (line 580) | def __init__(self, method get_feature (line 622) | def get_feature(self, x: paddle.Tensor): method forward (line 628) | def forward(self, x: paddle.Tensor, y: paddle.Tensor): FILE: paddlespeech/t2s/models/starganv2_vc/starganv2_vc_updater.py class StarGANv2VCUpdater (line 38) | class StarGANv2VCUpdater(StandardUpdater): method __init__ (line 39) | def __init__(self, method zero_grad (line 97) | def zero_grad(self): method scheduler (line 103) | def scheduler(self): method update_core (line 109) | def update_core(self, batch): class StarGANv2VCEvaluator (line 199) | class StarGANv2VCEvaluator(StandardEvaluator): method __init__ (line 200) | def __init__(self, method evaluate_core (line 241) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/starganv2_vc/transforms.py class TimeStrech (line 23) | class TimeStrech(nn.Layer): method __init__ (line 24) | def __init__(self, scale): method forward (line 28) | def forward(self, x: paddle.Tensor): class PitchShift (line 51) | class PitchShift(nn.Layer): method __init__ (line 52) | def __init__(self, shift): method forward (line 56) | def forward(self, x: paddle.Tensor): class ShiftBias (line 78) | class ShiftBias(nn.Layer): method __init__ (line 79) | def __init__(self, bias): method forward (line 83) | def forward(self, x: paddle.Tensor): class SpectScaling (line 88) | class SpectScaling(nn.Layer): method __init__ (line 89) | def __init__(self, scale): method forward (line 93) | def forward(self, x: paddle.Tensor): class TimeFlip (line 98) | class TimeFlip(nn.Layer): method __init__ (line 99) | def __init__(self, length): method forward (line 103) | def forward(self, x: paddle.Tensor): class PhaseShuffle2D (line 113) | class PhaseShuffle2D(nn.Layer): method __init__ (line 114) | def __init__(self, n: int=2): method forward (line 119) | def forward(self, x: paddle.Tensor, move=None): function build_transforms (line 134) | def build_transforms(): FILE: paddlespeech/t2s/models/tacotron2/tacotron2.py class Tacotron2 (line 35) | class Tacotron2(nn.Layer): method __init__ (line 48) | def __init__( method forward (line 249) | def forward( method _forward (line 331) | def _forward( method inference (line 354) | def inference( method _integrate_with_spk_embed (line 452) | def _integrate_with_spk_embed(self, class Tacotron2Inference (line 481) | class Tacotron2Inference(nn.Layer): method __init__ (line 482) | def __init__(self, normalizer, model): method forward (line 487) | def forward(self, text, spk_id=None, spk_emb=None): FILE: paddlespeech/t2s/models/tacotron2/tacotron2_updater.py class Tacotron2Updater (line 34) | class Tacotron2Updater(StandardUpdater): method __init__ (line 35) | def __init__(self, method update_core (line 68) | def update_core(self, batch): class Tacotron2Evaluator (line 133) | class Tacotron2Evaluator(StandardEvaluator): method __init__ (line 134) | def __init__(self, method evaluate_core (line 165) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/transformer_tts/transformer_tts.py class TransformerTTS (line 43) | class TransformerTTS(nn.Layer): method __init__ (line 175) | def __init__( method _reset_parameters (line 374) | def _reset_parameters(self, init_enc_alpha: float, init_dec_alpha: flo... method forward (line 392) | def forward( method _forward (line 460) | def _forward( method inference (line 508) | def inference( method _add_first_frame_and_remove_last_frame (line 645) | def _add_first_frame_and_remove_last_frame( method _source_mask (line 651) | def _source_mask(self, ilens: paddle.Tensor) -> paddle.Tensor: method _target_mask (line 670) | def _target_mask(self, olens: paddle.Tensor) -> paddle.Tensor: method _integrate_with_spk_embed (line 698) | def _integrate_with_spk_embed(self, class TransformerTTSInference (line 726) | class TransformerTTSInference(nn.Layer): method __init__ (line 727) | def __init__(self, normalizer, model): method forward (line 732) | def forward(self, text, spk_id=None): FILE: paddlespeech/t2s/models/transformer_tts/transformer_tts_updater.py class TransformerTTSUpdater (line 36) | class TransformerTTSUpdater(StandardUpdater): method __init__ (line 37) | def __init__( method update_core (line 74) | def update_core(self, batch): class TransformerTTSEvaluator (line 189) | class TransformerTTSEvaluator(StandardEvaluator): method __init__ (line 190) | def __init__( method evaluate_core (line 226) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/vits/duration_predictor.py class StochasticDurationPredictor (line 33) | class StochasticDurationPredictor(nn.Layer): method __init__ (line 41) | def __init__( method forward (line 107) | def forward( FILE: paddlespeech/t2s/models/vits/flow.py class FlipFlow (line 30) | class FlipFlow(nn.Layer): method forward (line 33) | def forward(self, x: paddle.Tensor, *args, inverse: bool=False, **kwargs class LogFlow (line 55) | class LogFlow(nn.Layer): method forward (line 58) | def forward(self, class ElementwiseAffineFlow (line 90) | class ElementwiseAffineFlow(nn.Layer): method __init__ (line 93) | def __init__(self, channels: int): method forward (line 113) | def forward(self, class Transpose (line 143) | class Transpose(nn.Layer): method __init__ (line 146) | def __init__(self, dim1: int, dim2: int): method forward (line 152) | def forward(self, x: paddle.Tensor) -> paddle.Tensor: class DilatedDepthSeparableConv (line 164) | class DilatedDepthSeparableConv(nn.Layer): method __init__ (line 167) | def __init__( method forward (line 216) | def forward(self, class ConvFlow (line 240) | class ConvFlow(nn.Layer): method __init__ (line 243) | def __init__( method forward (line 300) | def forward( FILE: paddlespeech/t2s/models/vits/generator.py class VITSGenerator (line 38) | class VITSGenerator(nn.Layer): method __init__ (line 48) | def __init__( method forward (line 287) | def forward( method inference (line 428) | def inference( method voice_conversion (line 586) | def voice_conversion( method _generate_path (line 670) | def _generate_path(self, dur: paddle.Tensor, FILE: paddlespeech/t2s/models/vits/monotonic_align/__init__.py function maximum_path (line 39) | def maximum_path(neg_x_ent: paddle.Tensor, function maximum_path_each_numba (line 65) | def maximum_path_each_numba(path, value, t_y, t_x, max_neg_val=-np.inf): function maximum_path_numba (line 91) | def maximum_path_numba(paths, values, t_ys, t_xs): FILE: paddlespeech/t2s/models/vits/monotonic_align/setup.py class build_ext (line 21) | class build_ext(_build_ext): method finalize_options (line 24) | def finalize_options(self): FILE: paddlespeech/t2s/models/vits/posterior_encoder.py class PosteriorEncoder (line 29) | class PosteriorEncoder(nn.Layer): method __init__ (line 39) | def __init__( method forward (line 104) | def forward( FILE: paddlespeech/t2s/models/vits/residual_coupling.py class ResidualAffineCouplingBlock (line 30) | class ResidualAffineCouplingBlock(nn.Layer): method __init__ (line 42) | def __init__( method forward (line 103) | def forward( class ResidualAffineCouplingLayer (line 134) | class ResidualAffineCouplingLayer(nn.Layer): method __init__ (line 137) | def __init__( method forward (line 231) | def forward( FILE: paddlespeech/t2s/models/vits/text_encoder.py class TextEncoder (line 30) | class TextEncoder(nn.Layer): method __init__ (line 44) | def __init__( method forward (line 132) | def forward( method reset_parameters (line 170) | def reset_parameters(self): FILE: paddlespeech/t2s/models/vits/transform.py function piecewise_rational_quadratic_transform (line 31) | def piecewise_rational_quadratic_transform( function mask_preprocess (line 63) | def mask_preprocess(x, mask): function unconstrained_rational_quadratic_spline (line 75) | def unconstrained_rational_quadratic_spline( function rational_quadratic_spline (line 133) | def rational_quadratic_spline( function _searchsorted (line 245) | def _searchsorted(bin_locations, inputs, eps=1e-6): FILE: paddlespeech/t2s/models/vits/vits.py class VITS (line 55) | class VITS(nn.Layer): method __init__ (line 64) | def __init__( method forward (line 221) | def forward( method _forward_generator (line 271) | def _forward_generator( method _forward_discrminator (line 323) | def _forward_discrminator( method inference (line 375) | def inference( method voice_conversion (line 458) | def voice_conversion( method reset_parameters (line 505) | def reset_parameters(self): class VITSInference (line 539) | class VITSInference(nn.Layer): method __init__ (line 540) | def __init__(self, model): method forward (line 544) | def forward(self, text, sids=None): FILE: paddlespeech/t2s/models/vits/vits_updater.py class VITSUpdater (line 37) | class VITSUpdater(StandardUpdater): method __init__ (line 38) | def __init__(self, method update_core (line 102) | def update_core(self, batch): class VITSEvaluator (line 219) | class VITSEvaluator(StandardEvaluator): method __init__ (line 220) | def __init__(self, method evaluate_core (line 264) | def evaluate_core(self, batch): FILE: paddlespeech/t2s/models/vits/wavenet/residual_block.py class ResidualBlock (line 24) | class ResidualBlock(nn.Layer): method __init__ (line 27) | def __init__( method forward (line 106) | def forward( FILE: paddlespeech/t2s/models/vits/wavenet/wavenet.py class WaveNet (line 24) | class WaveNet(nn.Layer): method __init__ (line 27) | def __init__( method forward (line 139) | def forward( method apply_weight_norm (line 181) | def apply_weight_norm(self): method remove_weight_norm (line 188) | def remove_weight_norm(self): FILE: paddlespeech/t2s/models/waveflow.py function fold (line 32) | def fold(x, n_group): class UpsampleNet (line 50) | class UpsampleNet(nn.LayerList): method __init__ (line 77) | def __init__(self, upsample_factors): method forward (line 96) | def forward(self, x, trim_conv_artifact=False): class ResidualBlock (line 123) | class ResidualBlock(nn.Layer): method __init__ (line 141) | def __init__(self, channels, cond_channels, kernel_size, dilations): method forward (line 181) | def forward(self, x, condition): method start_sequence (line 208) | def start_sequence(self): method add_input (line 228) | def add_input(self, x_row, condition_row): method _init_buffer (line 264) | def _init_buffer(self, input): method _update_buffer (line 269) | def _update_buffer(self, input): class ResidualNet (line 274) | class ResidualNet(nn.LayerList): method __init__ (line 293) | def __init__(self, method forward (line 309) | def forward(self, x, condition): method start_sequence (line 329) | def start_sequence(self): method add_input (line 335) | def add_input(self, x_row, condition_row): class Flow (line 359) | class Flow(nn.Layer): method __init__ (line 387) | def __init__(self, n_layers, channels, mel_bands, kernel_size, n_group): method _predict_parameters (line 411) | def _predict_parameters(self, x, condition): method _transform (line 418) | def _transform(self, x, logs, b): method forward (line 424) | def forward(self, x, condition): method _predict_row_parameters (line 448) | def _predict_row_parameters(self, x_row, condition_row): method _inverse_transform_row (line 455) | def _inverse_transform_row(self, z_row, logs, b): method _inverse_row (line 459) | def _inverse_row(self, z_row, x_row, condition_row): method _start_sequence (line 464) | def _start_sequence(self): method inverse (line 467) | def inverse(self, z, condition): class WaveFlow (line 498) | class WaveFlow(nn.LayerList): method __init__ (line 517) | def __init__(self, n_flows, n_layers, n_group, channels, mel_bands, method _create_perm (line 535) | def _create_perm(self, n_group, n_flows): method _trim (line 550) | def _trim(self, x, condition): method forward (line 560) | def forward(self, x, condition): method inverse (line 602) | def inverse(self, z, condition): class ConditionalWaveFlow (line 638) | class ConditionalWaveFlow(nn.LayerList): method __init__ (line 658) | def __init__(self, method forward (line 676) | def forward(self, audio, mel): method infer (line 697) | def infer(self, mel): method predict (line 718) | def predict(self, mel): method from_pretrained (line 735) | def from_pretrained(cls, config, checkpoint_path): class WaveFlowLoss (line 758) | class WaveFlowLoss(nn.Layer): method __init__ (line 766) | def __init__(self, sigma=1.0): method forward (line 771) | def forward(self, z, log_det_jacobian): class ConditionalWaveFlow2Infer (line 791) | class ConditionalWaveFlow2Infer(ConditionalWaveFlow): method forward (line 792) | def forward(self, mel): FILE: paddlespeech/t2s/models/wavernn/wavernn.py class ResBlock (line 30) | class ResBlock(nn.Layer): method __init__ (line 31) | def __init__(self, dims): method forward (line 38) | def forward(self, x): class MelResNet (line 51) | class MelResNet(nn.Layer): method __init__ (line 52) | def __init__(self, method forward (line 69) | def forward(self, x): class UpsampleNetwork (line 88) | class UpsampleNetwork(nn.Layer): method __init__ (line 89) | def __init__(self, method forward (line 121) | def forward(self, m): class WaveRNN (line 155) | class WaveRNN(nn.Layer): method __init__ (line 156) | def __init__( method forward (line 241) | def forward(self, x, c): method generate (line 291) | def generate(self, method _flatten_parameters (line 423) | def _flatten_parameters(self): method pad_tensor (line 426) | def pad_tensor(self, x, pad, side='both'): method fold_with_overlap (line 448) | def fold_with_overlap(self, x, target, overlap): method xfade_and_unfold (line 503) | def xfade_and_unfold(self, y, target: int=12000, overlap: int=600): method gen_display (line 573) | def gen_display(self, i, seq_len, b_size, start): method progbar (line 579) | def progbar(self, i, n, size=16): class WaveRNNInference (line 587) | class WaveRNNInference(nn.Layer): method __init__ (line 588) | def __init__(self, normalizer, wavernn): method forward (line 593) | def forward(self, FILE: paddlespeech/t2s/models/wavernn/wavernn_updater.py function calculate_grad_norm (line 34) | def calculate_grad_norm(parameters, norm_type: str=2): class WaveRNNUpdater (line 59) | class WaveRNNUpdater(StandardUpdater): method __init__ (line 60) | def __init__(self, method update_core (line 80) | def update_core(self, batch): class WaveRNNEvaluator (line 115) | class WaveRNNEvaluator(StandardEvaluator): method __init__ (line 116) | def __init__(self, method evaluate_core (line 139) | def evaluate_core(self, batch): method gen_valid_samples (line 161) | def gen_valid_samples(self): method __call__ (line 194) | def __call__(self, trainer=None): FILE: paddlespeech/t2s/modules/activation.py class GLU (line 19) | class GLU(nn.Layer): method __init__ (line 22) | def __init__(self, dim: int=-1): method forward (line 26) | def forward(self, xs): function get_activation (line 30) | def get_activation(act, **kwargs): FILE: paddlespeech/t2s/modules/adversarial_loss/gradient_reversal.py class GradientReversalFunction (line 19) | class GradientReversalFunction(PyLayer): method forward (line 28) | def forward(ctx, x, lambda_=1): method backward (line 35) | def backward(ctx, grads): class GradientReversalLayer (line 43) | class GradientReversalLayer(nn.Layer): method __init__ (line 51) | def __init__(self, lambda_=1): method forward (line 55) | def forward(self, x): FILE: paddlespeech/t2s/modules/adversarial_loss/speaker_classifier.py class SpeakerClassifier (line 20) | class SpeakerClassifier(nn.Layer): method __init__ (line 22) | def __init__( method parse_outputs (line 37) | def parse_outputs(self, out, text_lengths): method forward (line 45) | def forward(self, encoder_outputs, text_lengths): FILE: paddlespeech/t2s/modules/causal_conv.py class CausalConv1D (line 19) | class CausalConv1D(nn.Layer): method __init__ (line 22) | def __init__( method forward (line 42) | def forward(self, x): class CausalConv1DTranspose (line 53) | class CausalConv1DTranspose(nn.Layer): method __init__ (line 56) | def __init__(self, method forward (line 68) | def forward(self, x): FILE: paddlespeech/t2s/modules/conformer/convolution.py class ConvolutionModule (line 19) | class ConvolutionModule(nn.Layer): method __init__ (line 29) | def __init__(self, channels, kernel_size, activation=nn.ReLU(), bias=T... method forward (line 60) | def forward(self, x): FILE: paddlespeech/t2s/modules/conformer/encoder_layer.py class EncoderLayer (line 22) | class EncoderLayer(nn.Layer): method __init__ (line 58) | def __init__( method forward (line 94) | def forward(self, x_input, mask, cache=None): FILE: paddlespeech/t2s/modules/conv.py class Conv1dCell (line 23) | class Conv1dCell(nn.Conv1D): method __init__ (line 74) | def __init__(self, method receptive_field (line 97) | def receptive_field(self): method start_sequence (line 102) | def start_sequence(self): method initialize_buffer (line 127) | def initialize_buffer(self, x_t): method update_buffer (line 140) | def update_buffer(self, x_t): method add_input (line 151) | def add_input(self, x_t): class Conv1dBatchNorm (line 182) | class Conv1dBatchNorm(nn.Layer): method __init__ (line 214) | def __init__(self, method forward (line 241) | def forward(self, x): FILE: paddlespeech/t2s/modules/diffnet.py function Conv1D (line 27) | def Conv1D(*args, **kwargs): function Linear (line 42) | def Linear(*args, **kwargs): class ResidualBlock (line 52) | class ResidualBlock(nn.Layer): method __init__ (line 68) | def __init__(self, method forward (line 85) | def forward( class SinusoidalPosEmb (line 114) | class SinusoidalPosEmb(nn.Layer): method __init__ (line 118) | def __init__(self, dim: int=256): method forward (line 122) | def forward(self, x: paddle.Tensor): class DiffNet (line 136) | class DiffNet(nn.Layer): method __init__ (line 167) | def __init__( method forward (line 215) | def forward( FILE: paddlespeech/t2s/modules/diffusion.py class GaussianDiffusion (line 26) | class GaussianDiffusion(nn.Layer): method __init__ (line 136) | def __init__( method norm_spec (line 165) | def norm_spec(self, x): method denorm_spec (line 174) | def denorm_spec(self, x): method forward (line 178) | def forward(self, x: paddle.Tensor, cond: Optional[paddle.Tensor]=None method inference (line 220) | def inference(self, FILE: paddlespeech/t2s/modules/fftconv1d.py function __unfold (line 31) | def __unfold(x, kernel_size: int, stride: int): function fft_conv1d (line 62) | def fft_conv1d( class FFTConv1D (line 142) | class FFTConv1D(paddle.nn.Layer): method __init__ (line 176) | def __init__( method forward (line 205) | def forward(self, x: paddle.Tensor): FILE: paddlespeech/t2s/modules/geometry.py function shuffle_dim (line 18) | def shuffle_dim(x, axis, perm=None): FILE: paddlespeech/t2s/modules/layer_norm.py class LayerNorm (line 19) | class LayerNorm(nn.LayerNorm): method __init__ (line 28) | def __init__(self, nout, dim=-1): method forward (line 33) | def forward(self, x): FILE: paddlespeech/t2s/modules/losses.py function log_sum_exp (line 39) | def log_sum_exp(x): function discretized_mix_logistic_loss (line 49) | def discretized_mix_logistic_loss(y_hat, function sample_from_discretized_mix_logistic (line 129) | def sample_from_discretized_mix_logistic(y, log_scale_min=None): class GuidedAttentionLoss (line 175) | class GuidedAttentionLoss(nn.Layer): method __init__ (line 189) | def __init__(self, sigma=0.4, alpha=1.0, reset_always=True): method _reset_masks (line 205) | def _reset_masks(self): method forward (line 209) | def forward(self, att_ws, ilens, olens): method _make_guided_attention_masks (line 233) | def _make_guided_attention_masks(self, ilens, olens): method _make_guided_attention_mask (line 246) | def _make_guided_attention_mask(ilen, olen, sigma): method _make_masks (line 280) | def _make_masks(ilens, olens): class GuidedMultiHeadAttentionLoss (line 324) | class GuidedMultiHeadAttentionLoss(GuidedAttentionLoss): method forward (line 335) | def forward(self, att_ws, ilens, olens): class Tacotron2Loss (line 364) | class Tacotron2Loss(nn.Layer): method __init__ (line 367) | def __init__(self, method forward (line 393) | def forward(self, after_outs, before_outs, logits, ys, stop_labels, ol... function stft (line 459) | def stft(x, class SpectralConvergenceLoss (line 509) | class SpectralConvergenceLoss(nn.Layer): method __init__ (line 512) | def __init__(self): method forward (line 516) | def forward(self, x_mag, y_mag): class LogSTFTMagnitudeLoss (line 531) | class LogSTFTMagnitudeLoss(nn.Layer): method __init__ (line 534) | def __init__(self, epsilon=1e-7): method forward (line 539) | def forward(self, x_mag, y_mag): class STFTLoss (line 554) | class STFTLoss(nn.Layer): method __init__ (line 557) | def __init__(self, method forward (line 571) | def forward(self, x, y): class MultiResolutionSTFTLoss (line 594) | class MultiResolutionSTFTLoss(nn.Layer): method __init__ (line 597) | def __init__( method forward (line 620) | def forward(self, x, y): class GeneratorAdversarialLoss (line 651) | class GeneratorAdversarialLoss(nn.Layer): method __init__ (line 654) | def __init__( method forward (line 667) | def forward(self, outputs): method _mse_loss (line 690) | def _mse_loss(self, x): method _hinge_loss (line 693) | def _hinge_loss(self, x): class DiscriminatorAdversarialLoss (line 697) | class DiscriminatorAdversarialLoss(nn.Layer): method __init__ (line 700) | def __init__( method forward (line 712) | def forward(self, outputs_hat, outputs): method _mse_real_loss (line 746) | def _mse_real_loss(self, x): method _mse_fake_loss (line 749) | def _mse_fake_loss(self, x): function gaussian (line 755) | def gaussian(window_size, sigma): function create_window (line 763) | def create_window(window_size, channel): function _ssim (line 771) | def _ssim(img1, img2, window, window_size, channel, size_average=True): function ssim (line 798) | def ssim(img1, img2, window_size=11, size_average=True): function weighted_mean (line 804) | def weighted_mean(input, weight): function masked_l1_loss (line 821) | def masked_l1_loss(prediction, target, mask): class MelSpectrogram (line 842) | class MelSpectrogram(nn.Layer): method __init__ (line 845) | def __init__( method forward (line 906) | def forward(self, x): class MelSpectrogramLoss (line 940) | class MelSpectrogramLoss(nn.Layer): method __init__ (line 943) | def __init__( method forward (line 975) | def forward(self, y_hat, y): class FeatureMatchLoss (line 993) | class FeatureMatchLoss(nn.Layer): method __init__ (line 996) | def __init__( method forward (line 1007) | def forward(self, feats_hat, feats): class KLDivergenceLoss (line 1039) | class KLDivergenceLoss(nn.Layer): method forward (line 1042) | def forward( class MLMLoss (line 1081) | class MLMLoss(nn.Layer): method __init__ (line 1082) | def __init__(self, method forward (line 1099) | def forward( class VarianceLoss (line 1145) | class VarianceLoss(nn.Layer): method __init__ (line 1147) | def __init__(self, use_masking: bool=True, method forward (line 1168) | def forward( class ForwardSumLoss (line 1234) | class ForwardSumLoss(nn.Layer): method __init__ (line 1239) | def __init__(self, cache_prior: bool=True): method forward (line 1248) | def forward( method _generate_prior (line 1294) | def _generate_prior(self, text_lengths, feats_lengths, class MultiScaleSTFTLoss (line 1337) | class MultiScaleSTFTLoss(nn.Layer): method __init__ (line 1350) | def __init__( method forward (line 1398) | def forward(self, x: AudioSignal, y: AudioSignal): class GANLoss (line 1432) | class GANLoss(nn.Layer): method __init__ (line 1463) | def __init__(self, discriminator): method forward (line 1472) | def forward(self, method discriminator_loss (line 1486) | def discriminator_loss(self, fake, real): method generator_loss (line 1495) | def generator_loss(self, fake, real): class SISDRLoss (line 1510) | class SISDRLoss(nn.Layer): method __init__ (line 1528) | def __init__( method forward (line 1559) | def forward(self, FILE: paddlespeech/t2s/modules/masked_fill.py function is_broadcastable (line 19) | def is_broadcastable(shp1, shp2): function broadcast_shape (line 29) | def broadcast_shape(shp1, shp2): function masked_fill (line 56) | def masked_fill(xs: paddle.Tensor, FILE: paddlespeech/t2s/modules/nets_utils.py function _reset_parameters (line 33) | def _reset_parameters(module): function pad_list (line 62) | def pad_list(xs, pad_value): function make_pad_mask (line 94) | def make_pad_mask(lengths, xs=None, length_dim=-1): function make_non_pad_mask (line 213) | def make_non_pad_mask(lengths, xs=None, length_dim=-1): function initialize (line 305) | def initialize(model: nn.Layer, init: str): function get_random_segments (line 335) | def get_random_segments( function get_segments (line 363) | def get_segments( function paddle_gather (line 386) | def paddle_gather(x, dim, index): function phones_masking (line 409) | def phones_masking(xs_pad: paddle.Tensor, function phones_text_masking (line 475) | def phones_text_masking(xs_pad: paddle.Tensor, function get_seg_pos (line 563) | def get_seg_pos(speech_pad: paddle.Tensor, function random_spans_noise_mask (line 633) | def random_spans_noise_mask(length: int, FILE: paddlespeech/t2s/modules/normalizer.py class ZScore (line 18) | class ZScore(nn.Layer): method __init__ (line 20) | def __init__(self, mu, sigma): method forward (line 25) | def forward(self, x): method inverse (line 30) | def inverse(self, x): FILE: paddlespeech/t2s/modules/positional_encoding.py function sinusoid_position_encoding (line 20) | def sinusoid_position_encoding(num_positions: int, function scaled_position_encoding (line 43) | def scaled_position_encoding(num_positions: int, FILE: paddlespeech/t2s/modules/pqmf.py function design_prototype_filter (line 23) | def design_prototype_filter(taps=62, cutoff_ratio=0.142, beta=9.0): class PQMF (line 59) | class PQMF(nn.Layer): method __init__ (line 66) | def __init__(self, subbands=4, taps=62, cutoff_ratio=0.142, beta=9.0): method analysis (line 110) | def analysis(self, x): method synthesis (line 121) | def synthesis(self, x): method forward (line 135) | def forward(self, x): FILE: paddlespeech/t2s/modules/predictor/duration_predictor.py class DurationPredictor (line 23) | class DurationPredictor(nn.Layer): method __init__ (line 43) | def __init__(self, method _forward (line 85) | def _forward(self, xs, x_masks=None, is_inference=False): method forward (line 105) | def forward(self, xs, x_masks=None): method inference (line 118) | def inference(self, xs, x_masks=None): class DurationPredictorLoss (line 132) | class DurationPredictorLoss(nn.Layer): method __init__ (line 139) | def __init__(self, offset=1.0, reduction="mean"): method forward (line 149) | def forward(self, outputs, targets): FILE: paddlespeech/t2s/modules/predictor/length_regulator.py class LengthRegulator (line 21) | class LengthRegulator(nn.Layer): method __init__ (line 35) | def __init__(self, pad_value=0.0): method expand_numpy (line 47) | def expand_numpy(self, encodings: paddle.Tensor, method expand (line 70) | def expand(self, encodings: paddle.Tensor, method forward (line 97) | def forward(self, xs, ds, alpha=1.0, is_inference=False): FILE: paddlespeech/t2s/modules/predictor/variance_predictor.py class VariancePredictor (line 24) | class VariancePredictor(nn.Layer): method __init__ (line 36) | def __init__( method forward (line 77) | def forward(self, xs: paddle.Tensor, FILE: paddlespeech/t2s/modules/residual_block.py class WaveNetResidualBlock (line 26) | class WaveNetResidualBlock(nn.Layer): method __init__ (line 52) | def __init__(self, method forward (line 90) | def forward(self, x, c): class HiFiGANResidualBlock (line 122) | class HiFiGANResidualBlock(nn.Layer): method __init__ (line 125) | def __init__( method forward (line 187) | def forward(self, x): FILE: paddlespeech/t2s/modules/residual_stack.py class ResidualStack (line 25) | class ResidualStack(nn.Layer): method __init__ (line 28) | def __init__( method forward (line 103) | def forward(self, c): FILE: paddlespeech/t2s/modules/style_encoder.py class StyleEncoder (line 25) | class StyleEncoder(nn.Layer): method __init__ (line 62) | def __init__( method forward (line 91) | def forward(self, speech: paddle.Tensor) -> paddle.Tensor: class ReferenceEncoder (line 108) | class ReferenceEncoder(nn.Layer): method __init__ (line 136) | def __init__( method forward (line 186) | def forward(self, speech: paddle.Tensor) -> paddle.Tensor: class StyleTokenLayer (line 213) | class StyleTokenLayer(nn.Layer): method __init__ (line 236) | def __init__( method forward (line 259) | def forward(self, ref_embs: paddle.Tensor) -> paddle.Tensor: class MultiHeadedAttention (line 281) | class MultiHeadedAttention(BaseMultiHeadedAttention): method __init__ (line 284) | def __init__(self, q_dim, k_dim, v_dim, n_head, n_feat, dropout_rate=0... FILE: paddlespeech/t2s/modules/tacotron2/attentions.py function _apply_attention_constraint (line 23) | def _apply_attention_constraint(e, class AttLoc (line 64) | class AttLoc(nn.Layer): method __init__ (line 85) | def __init__(self, method reset (line 113) | def reset(self): method forward (line 120) | def forward( class AttForward (line 213) | class AttForward(nn.Layer): method __init__ (line 233) | def __init__(self, eprojs, dunits, att_dim, aconv_chans, aconv_filts): method reset (line 253) | def reset(self): method forward (line 260) | def forward( class AttForwardTA (line 358) | class AttForwardTA(nn.Layer): method __init__ (line 379) | def __init__(self, eunits, dunits, att_dim, aconv_chans, aconv_filts, ... method reset (line 401) | def reset(self): method forward (line 408) | def forward( FILE: paddlespeech/t2s/modules/tacotron2/decoder.py class Prenet (line 23) | class Prenet(nn.Layer): method __init__ (line 44) | def __init__(self, idim, n_layers=2, n_units=256, dropout_rate=0.5): method forward (line 65) | def forward(self, x): class Postnet (line 82) | class Postnet(nn.Layer): method __init__ (line 97) | def __init__( method forward (line 172) | def forward(self, xs): class ZoneOutCell (line 185) | class ZoneOutCell(nn.Layer): method __init__ (line 200) | def __init__(self, cell, zoneout_rate=0.1): method forward (line 216) | def forward(self, inputs, hidden): method _zoneout (line 238) | def _zoneout(self, h, next_h, prob): class Decoder (line 253) | class Decoder(nn.Layer): method __init__ (line 264) | def __init__( method _zero_state (line 377) | def _zero_state(self, hs): method forward (line 381) | def forward(self, hs, hlens, ys): method inference (line 489) | def inference( method calculate_all_attentions (line 662) | def calculate_all_attentions(self, hs, hlens, ys): FILE: paddlespeech/t2s/modules/tacotron2/encoder.py class Encoder (line 20) | class Encoder(nn.Layer): method __init__ (line 33) | def __init__( method forward (line 137) | def forward(self, xs, ilens=None): method inference (line 177) | def inference(self, x): FILE: paddlespeech/t2s/modules/tade_res_block.py class TADELayer (line 22) | class TADELayer(nn.Layer): method __init__ (line 25) | def __init__( method forward (line 60) | def forward(self, x, c): class TADEResBlock (line 87) | class TADEResBlock(nn.Layer): method __init__ (line 90) | def __init__( method forward (line 141) | def forward(self, x, c): FILE: paddlespeech/t2s/modules/transformer/attention.py class MultiHeadedAttention (line 25) | class MultiHeadedAttention(nn.Layer): method __init__ (line 36) | def __init__(self, n_head, n_feat, dropout_rate): method forward_qkv (line 50) | def forward_qkv(self, query, key, value): method forward_attention (line 85) | def forward_attention(self, value, scores, mask=None): method forward (line 124) | def forward(self, query, key, value, mask=None): class RelPositionMultiHeadedAttention (line 147) | class RelPositionMultiHeadedAttention(MultiHeadedAttention): method __init__ (line 163) | def __init__(self, n_head, n_feat, dropout_rate, zero_triu=False): method rel_shift (line 181) | def rel_shift(self, x): method forward (line 202) | def forward(self, query, key, value, pos_emb, mask): class LegacyRelPositionMultiHeadedAttention (line 249) | class LegacyRelPositionMultiHeadedAttention(MultiHeadedAttention): method __init__ (line 265) | def __init__(self, n_head, n_feat, dropout_rate, zero_triu=False): method rel_shift (line 283) | def rel_shift(self, x): method forward (line 304) | def forward(self, query, key, value, pos_emb, mask): FILE: paddlespeech/t2s/modules/transformer/decoder.py class Decoder (line 36) | class Decoder(nn.Layer): method __init__ (line 86) | def __init__( method forward (line 161) | def forward(self, tgt, tgt_mask, memory, memory_mask): method forward_one_step (line 191) | def forward_one_step(self, tgt, tgt_mask, memory, cache=None): method score (line 230) | def score(self, ys, state, x): method batch_score (line 244) | def batch_score(self, FILE: paddlespeech/t2s/modules/transformer/decoder_layer.py class DecoderLayer (line 22) | class DecoderLayer(nn.Layer): method __init__ (line 50) | def __init__( method forward (line 75) | def forward(self, tgt, tgt_mask, memory, memory_mask, cache=None): FILE: paddlespeech/t2s/modules/transformer/embedding.py class PositionalEncoding (line 22) | class PositionalEncoding(nn.Layer): method __init__ (line 38) | def __init__(self, method extend_pe (line 54) | def extend_pe(self, x): method forward (line 72) | def forward(self, x: paddle.Tensor): class ScaledPositionalEncoding (line 88) | class ScaledPositionalEncoding(PositionalEncoding): method __init__ (line 103) | def __init__(self, d_model, dropout_rate, max_len=5000, dtype="float32"): method reset_parameters (line 116) | def reset_parameters(self): method forward (line 120) | def forward(self, x): class RelPositionalEncoding (line 135) | class RelPositionalEncoding(nn.Layer): method __init__ (line 149) | def __init__(self, d_model, dropout_rate, max_len=5000, dtype="float32"): method extend_pe (line 159) | def extend_pe(self, x): method forward (line 189) | def forward(self, x: paddle.Tensor): class LegacyRelPositionalEncoding (line 206) | class LegacyRelPositionalEncoding(PositionalEncoding): method __init__ (line 223) | def __init__(self, d_model: int, dropout_rate: float, max_len: int=5000): method extend_pe (line 235) | def extend_pe(self, x): method forward (line 256) | def forward(self, x: paddle.Tensor): FILE: paddlespeech/t2s/modules/transformer/encoder.py class BaseEncoder (line 38) | class BaseEncoder(nn.Layer): method __init__ (line 97) | def __init__(self, method get_positionwise_layer (line 189) | def get_positionwise_layer(self, method get_encoder_selfattn_layer (line 215) | def get_encoder_selfattn_layer(self, method get_pos_enc_class (line 236) | def get_pos_enc_class(self, method get_embed (line 250) | def get_embed(self, method forward (line 289) | def forward(self, xs, masks): class TransformerEncoder (line 311) | class TransformerEncoder(BaseEncoder): method __init__ (line 354) | def __init__( method forward (line 394) | def forward(self, method forward_one_step (line 429) | def forward_one_step(self, xs, masks, cache=None): class ConformerEncoder (line 461) | class ConformerEncoder(BaseEncoder): method __init__ (line 517) | def __init__( method forward (line 569) | def forward(self, xs, masks): class Conv1dResidualBlock (line 616) | class Conv1dResidualBlock(nn.Layer): method __init__ (line 621) | def __init__(self, method forward (line 635) | def forward(self, xs): class CNNDecoder (line 648) | class CNNDecoder(nn.Layer): method __init__ (line 653) | def __init__( method forward (line 679) | def forward(self, xs, masks=None): class CNNPostnet (line 707) | class CNNPostnet(nn.Layer): method __init__ (line 708) | def __init__( method forward (line 728) | def forward(self, xs, masks=None): FILE: paddlespeech/t2s/modules/transformer/encoder_layer.py class EncoderLayer (line 20) | class EncoderLayer(nn.Layer): method __init__ (line 43) | def __init__( method forward (line 64) | def forward(self, x, mask, cache=None): FILE: paddlespeech/t2s/modules/transformer/lightconv.py class LightweightConvolution (line 27) | class LightweightConvolution(nn.Layer): method __init__ (line 49) | def __init__( method forward (line 96) | def forward(self, query, key, value, mask): FILE: paddlespeech/t2s/modules/transformer/mask.py function subsequent_mask (line 18) | def subsequent_mask(size, dtype=paddle.bool): function target_mask (line 37) | def target_mask(ys_in_pad, ignore_id, dtype=paddle.bool): FILE: paddlespeech/t2s/modules/transformer/multi_layer_conv.py class MultiLayeredConv1d (line 18) | class MultiLayeredConv1d(nn.Layer): method __init__ (line 31) | def __init__(self, in_chans, hidden_chans, kernel_size, dropout_rate): method forward (line 61) | def forward(self, x): class Conv1dLinear (line 76) | class Conv1dLinear(nn.Layer): method __init__ (line 83) | def __init__(self, in_chans, hidden_chans, kernel_size, dropout_rate): method forward (line 107) | def forward(self, x): FILE: paddlespeech/t2s/modules/transformer/positionwise_feed_forward.py class PositionwiseFeedForward (line 20) | class PositionwiseFeedForward(nn.Layer): method __init__ (line 32) | def __init__(self, method forward (line 44) | def forward(self, x): FILE: paddlespeech/t2s/modules/transformer/repeat.py class MultiSequential (line 19) | class MultiSequential(paddle.nn.Sequential): method forward (line 22) | def forward(self, *args): function repeat (line 29) | def repeat(N, fn): FILE: paddlespeech/t2s/modules/transformer/subsampling.py class Conv2dSubsampling (line 22) | class Conv2dSubsampling(nn.Layer): method __init__ (line 36) | def __init__(self, idim, odim, dropout_rate, pos_enc=None): method forward (line 49) | def forward(self, x, x_mask): method __getitem__ (line 71) | def __getitem__(self, key): FILE: paddlespeech/t2s/modules/upsample.py class Stretch2D (line 26) | class Stretch2D(nn.Layer): method __init__ (line 27) | def __init__(self, w_scale: int, h_scale: int, mode: str="nearest"): method forward (line 46) | def forward(self, x): class UpsampleNet (line 63) | class UpsampleNet(nn.Layer): method __init__ (line 85) | def __init__(self, method forward (line 116) | def forward(self, c): class ConvInUpsampleNet (line 135) | class ConvInUpsampleNet(nn.Layer): method __init__ (line 164) | def __init__(self, method forward (line 190) | def forward(self, c): FILE: paddlespeech/t2s/modules/wavenet_denoiser.py class WaveNetDenoiser (line 24) | class WaveNetDenoiser(nn.Layer): method __init__ (line 55) | def __init__( method forward (line 128) | def forward(self, x: paddle.Tensor, t: paddle.Tensor, c: paddle.Tensor): method apply_weight_norm (line 163) | def apply_weight_norm(self): method remove_weight_norm (line 174) | def remove_weight_norm(self): FILE: paddlespeech/t2s/training/cli.py function default_argument_parser (line 17) | def default_argument_parser(): FILE: paddlespeech/t2s/training/default_config.py function get_default_training_config (line 24) | def get_default_training_config(): FILE: paddlespeech/t2s/training/experiment.py class ExperimentBase (line 29) | class ExperimentBase(object): method __init__ (line 88) | def __init__(self, config, args): method setup (line 104) | def setup(self): method parallel (line 129) | def parallel(self): method init_parallel (line 135) | def init_parallel(self): method save (line 141) | def save(self): method resume_or_load (line 147) | def resume_or_load(self): method read_batch (line 161) | def read_batch(self): method new_epoch (line 176) | def new_epoch(self): method train (line 185) | def train(self): method run (line 202) | def run(self): method setup_output_dir (line 216) | def setup_output_dir(self): method setup_checkpointer (line 225) | def setup_checkpointer(self): method close (line 237) | def close(self): method setup_visualizer (line 243) | def setup_visualizer(self): method setup_logger (line 259) | def setup_logger(self): method dump_config (line 274) | def dump_config(self): method train_batch (line 283) | def train_batch(self): method valid (line 290) | def valid(self): method setup_model (line 295) | def setup_model(self): method setup_dataloader (line 301) | def setup_dataloader(self): FILE: paddlespeech/t2s/training/extension.py class Extension (line 22) | class Extension(object): method default_name (line 29) | def default_name(self): method __call__ (line 33) | def __call__(self, trainer): method initialize (line 39) | def initialize(self, trainer): method on_error (line 46) | def on_error(self, trainer, exc, tb): method finalize (line 51) | def finalize(self, trainer): function make_extension (line 58) | def make_extension(trigger: Callable=None, FILE: paddlespeech/t2s/training/extensions/evaluator.py class StandardEvaluator (line 27) | class StandardEvaluator(extension.Extension): method __init__ (line 35) | def __init__(self, model: Layer, dataloader: DataLoader): method evaluate_core (line 44) | def evaluate_core(self, batch): method evaluate (line 48) | def evaluate(self): method __call__ (line 65) | def __call__(self, trainer=None): FILE: paddlespeech/t2s/training/extensions/snapshot.py function load_records (line 30) | def load_records(records_fp): class Snapshot (line 37) | class Snapshot(extension.Extension): method __init__ (line 54) | def __init__(self, max_size: int=5, snapshot_on_error: bool=False): method initialize (line 61) | def initialize(self, trainer: Trainer): method on_error (line 72) | def on_error(self, trainer, exc, tb): method __call__ (line 76) | def __call__(self, trainer: Trainer): method full (line 79) | def full(self): method save_checkpoint_and_update (line 85) | def save_checkpoint_and_update(self, trainer: Trainer): FILE: paddlespeech/t2s/training/extensions/visualizer.py class VisualDL (line 20) | class VisualDL(extension.Extension): method __init__ (line 31) | def __init__(self, logdir): method __call__ (line 34) | def __call__(self, trainer: Trainer): method finalize (line 38) | def finalize(self, trainer): FILE: paddlespeech/t2s/training/optimizer.py function build_optimizers (line 37) | def build_optimizers( FILE: paddlespeech/t2s/training/reporter.py function scope (line 23) | def scope(observations): function get_observations (line 36) | def get_observations(): function report (line 41) | def report(name, value): class Summary (line 52) | class Summary(object): method __init__ (line 57) | def __init__(self): method add (line 62) | def add(self, value, weight=1): method compute_mean (line 77) | def compute_mean(self): method make_statistics (line 82) | def make_statistics(self): class DictSummary (line 96) | class DictSummary(object): method __init__ (line 105) | def __init__(self): method add (line 108) | def add(self, d): method compute_mean (line 126) | def compute_mean(self): method make_statistics (line 141) | def make_statistics(self): FILE: paddlespeech/t2s/training/seeding.py function seed_everything (line 21) | def seed_everything(seed: int): FILE: paddlespeech/t2s/training/trainer.py class _ExtensionEntry (line 33) | class _ExtensionEntry(object): method __init__ (line 34) | def __init__(self, extension, trigger, priority): class Trainer (line 40) | class Trainer(object): method __init__ (line 41) | def __init__(self, method is_before_training (line 59) | def is_before_training(self): method extend (line 62) | def extend(self, extension, name=None, trigger=None, priority=None): method get_extension (line 99) | def get_extension(self, name): method run (line 107) | def run(self): FILE: paddlespeech/t2s/training/trigger.py function never_fail_trigger (line 17) | def never_fail_trigger(trainer): function get_trigger (line 21) | def get_trigger(trigger): FILE: paddlespeech/t2s/training/triggers/interval_trigger.py class IntervalTrigger (line 17) | class IntervalTrigger(object): method __init__ (line 20) | def __init__(self, period: int, unit: str): method __call__ (line 29) | def __call__(self, trainer): FILE: paddlespeech/t2s/training/triggers/limit_trigger.py class LimitTrigger (line 17) | class LimitTrigger(object): method __init__ (line 20) | def __init__(self, limit: int, unit: str): method __call__ (line 28) | def __call__(self, trainer): FILE: paddlespeech/t2s/training/triggers/time_trigger.py class TimeTrigger (line 17) | class TimeTrigger(object): method __init__ (line 27) | def __init__(self, period): method __call__ (line 31) | def __call__(self, trainer): FILE: paddlespeech/t2s/training/updater.py class UpdaterState (line 22) | class UpdaterState: class UpdaterBase (line 27) | class UpdaterBase(object): method __init__ (line 57) | def __init__(self, init_state=None): method update (line 63) | def update(self, batch): method state_dict (line 67) | def state_dict(self): method set_state_dict (line 74) | def set_state_dict(self, state_dict): method save (line 78) | def save(self, path): method load (line 83) | def load(self, path): FILE: paddlespeech/t2s/training/updaters/standard_updater.py class StandardUpdater (line 33) | class StandardUpdater(UpdaterBase): method __init__ (line 38) | def __init__(self, method update (line 66) | def update(self): method update_core (line 124) | def update_core(self, batch): method updates_per_epoch (line 153) | def updates_per_epoch(self): method new_epoch (line 164) | def new_epoch(self): method read_batch (line 174) | def read_batch(self): method state_dict (line 186) | def state_dict(self): method set_state_dict (line 195) | def set_state_dict(self, state_dict): FILE: paddlespeech/t2s/utils/__init__.py function str2bool (line 21) | def str2bool(str): FILE: paddlespeech/t2s/utils/checkpoint.py function _load_latest_checkpoint (line 24) | def _load_latest_checkpoint(checkpoint_dir: str) -> int: function _save_checkpoint (line 46) | def _save_checkpoint(checkpoint_dir: str, iteration: int): function load_parameters (line 64) | def load_parameters(model, function save_parameters (line 118) | def save_parameters(checkpoint_dir, iteration, model, optimizer=None): FILE: paddlespeech/t2s/utils/display.py function plot_alignment (line 26) | def plot_alignment(alignment, title=None): function plot_multihead_alignments (line 41) | def plot_multihead_alignments(alignments, title=None): function plot_multilayer_multihead_alignments (line 64) | def plot_multilayer_multihead_alignments(alignments, title=None): function plot_spectrogram (line 94) | def plot_spectrogram(spec): function plot_waveform (line 105) | def plot_waveform(wav, sr=22050): FILE: paddlespeech/t2s/utils/error_rate.py function _levenshtein_distance (line 22) | def _levenshtein_distance(ref, hyp): function word_errors (line 69) | def word_errors(reference, hypothesis, ignore_case=False, delimiter=' '): function char_errors (line 97) | def char_errors(reference, hypothesis, ignore_case=False, remove_space=F... function wer (line 125) | def wer(reference, hypothesis, ignore_case=False, delimiter=' '): function cer (line 161) | def cer(reference, hypothesis, ignore_case=False, remove_space=False): FILE: paddlespeech/t2s/utils/h5_utils.py function read_hdf5 (line 24) | def read_hdf5(filename: Union[Path, str], dataset_name: str) -> Any: function write_hdf5 (line 54) | def write_hdf5(filename: Union[Path, str], FILE: paddlespeech/t2s/utils/internals.py function convert_dtype_to_np_dtype_ (line 20) | def convert_dtype_to_np_dtype_(dtype): FILE: paddlespeech/t2s/utils/layer_tools.py function summary (line 20) | def summary(layer: nn.Layer): function gradient_norm (line 31) | def gradient_norm(layer: nn.Layer): function recursively_remove_weight_norm (line 40) | def recursively_remove_weight_norm(layer: nn.Layer): function freeze (line 49) | def freeze(layer: nn.Layer): function unfreeze (line 54) | def unfreeze(layer: nn.Layer): FILE: paddlespeech/t2s/utils/mp_tools.py function rank_zero_only (line 21) | def rank_zero_only(func): FILE: paddlespeech/t2s/utils/profiler.py class ProfilerOptions (line 26) | class ProfilerOptions(object): method __init__ (line 47) | def __init__(self, options_str): method _parse_from_string (line 61) | def _parse_from_string(self, options_str): method __getitem__ (line 79) | def __getitem__(self, name): function add_profiler_step (line 86) | def add_profiler_step(options_str=None): FILE: paddlespeech/t2s/utils/scheduler.py class SchedulerBase (line 18) | class SchedulerBase(object): method __call__ (line 19) | def __call__(self, step): class Constant (line 23) | class Constant(SchedulerBase): method __init__ (line 24) | def __init__(self, value): method __call__ (line 27) | def __call__(self, step): class PieceWise (line 31) | class PieceWise(SchedulerBase): method __init__ (line 32) | def __init__(self, anchors): method __call__ (line 40) | def __call__(self, step): class StepWise (line 54) | class StepWise(SchedulerBase): method __init__ (line 55) | def __init__(self, anchors): method __call__ (line 63) | def __call__(self, step): FILE: paddlespeech/text/exps/ernie_linear/avg_model.py function main (line 24) | def main(args): FILE: paddlespeech/text/exps/ernie_linear/punc_restore.py function _clean_text (line 29) | def _clean_text(text, punc_list): function preprocess (line 36) | def preprocess(text, punc_list, tokenizer): function test (line 48) | def test(args): function main (line 93) | def main(): FILE: paddlespeech/text/exps/ernie_linear/test.py function evaluation (line 45) | def evaluation(y_pred, y_test): function test (line 58) | def test(args): function main (line 101) | def main(): FILE: paddlespeech/text/exps/ernie_linear/train.py function train_sp (line 54) | def train_sp(args, config): function main (line 143) | def main(): FILE: paddlespeech/text/models/ernie_crf/model.py class ErnieCrf (line 22) | class ErnieCrf(nn.Layer): method __init__ (line 23) | def __init__(self, method forward (line 38) | def forward(self, FILE: paddlespeech/text/models/ernie_linear/dataset.py class PuncDataset (line 22) | class PuncDataset(Dataset): method __init__ (line 23) | def __init__(self, train_path, vocab_path, punc_path, seq_len=100): method __len__ (line 36) | def __len__(self): method __getitem__ (line 41) | def __getitem__(self, index): method load_vocab (line 44) | def load_vocab(self, vocab_path, extra_word_list=[], encoding='utf-8'): method preprocess (line 52) | def preprocess(self, txt_seqs: list): class PuncDatasetFromErnieTokenizer (line 93) | class PuncDatasetFromErnieTokenizer(Dataset): method __init__ (line 94) | def __init__(self, method __len__ (line 108) | def __len__(self): method __getitem__ (line 111) | def __getitem__(self, index): method load_vocab (line 114) | def load_vocab(self, vocab_path, extra_word_list=[], encoding='utf-8'): method preprocess (line 122) | def preprocess(self, txt_seqs: list): FILE: paddlespeech/text/models/ernie_linear/ernie_linear.py class ErnieLinear (line 21) | class ErnieLinear(nn.Layer): method __init__ (line 22) | def __init__(self, method forward (line 51) | def forward(self, FILE: paddlespeech/text/models/ernie_linear/ernie_linear_updater.py class ErnieLinearUpdater (line 34) | class ErnieLinearUpdater(StandardUpdater): method __init__ (line 35) | def __init__(self, method update_core (line 56) | def update_core(self, batch): class ErnieLinearEvaluator (line 85) | class ErnieLinearEvaluator(StandardEvaluator): method __init__ (line 86) | def __init__(self, method evaluate_core (line 102) | def evaluate_core(self, batch): FILE: paddlespeech/utils/__init__.py function satisfy_version (line 17) | def satisfy_version(source: str, target: str, dev_allowed: bool=True) ->... function satisfy_paddle_version (line 27) | def satisfy_paddle_version(target: str, dev_allowed: bool=True) -> bool: FILE: paddlespeech/utils/argparse.py function get_commandline_args (line 26) | def get_commandline_args(): function print_arguments (line 60) | def print_arguments(args, info=None): function strtobool (line 85) | def strtobool(value): function add_arguments (line 106) | def add_arguments(argname, type, default, help, argparser, **kwargs): FILE: paddlespeech/utils/dynamic_import.py function dynamic_import (line 20) | def dynamic_import(import_path, alias=dict()): FILE: paddlespeech/utils/env.py function _get_user_home (line 17) | def _get_user_home(): function _get_paddlespcceh_home (line 21) | def _get_paddlespcceh_home(): function _get_sub_home (line 36) | def _get_sub_home(directory): FILE: paddlespeech/utils/initialize.py function _no_grad_uniform_ (line 41) | def _no_grad_uniform_(tensor, a, b): function _no_grad_normal_ (line 49) | def _no_grad_normal_(tensor, mean=0.0, std=1.0): function _no_grad_fill_ (line 55) | def _no_grad_fill_(tensor, value=0.0): function uniform_ (line 61) | def uniform_(tensor, a, b): function normal_ (line 74) | def normal_(tensor, mean=0.0, std=1.0): function constant_ (line 87) | def constant_(tensor, value=0.0): function ones_ (line 99) | def ones_(tensor): function zeros_ (line 110) | def zeros_(tensor): function vector_ (line 121) | def vector_(tensor, vector): function _calculate_fan_in_and_fan_out (line 127) | def _calculate_fan_in_and_fan_out(tensor, reverse=False): function xavier_uniform_ (line 156) | def xavier_uniform_(tensor, gain=1.0, reverse=False): function xavier_normal_ (line 172) | def xavier_normal_(tensor, gain=1.0, reverse=False): function _calculate_correct_fan (line 188) | def _calculate_correct_fan(tensor, mode, reverse=False): function _calculate_gain (line 200) | def _calculate_gain(nonlinearity, param=None): function kaiming_uniform_ (line 228) | def kaiming_uniform_(tensor, function kaiming_normal_ (line 250) | def kaiming_normal_(tensor, function linear_init_ (line 271) | def linear_init_(module): function conv_init_ (line 277) | def conv_init_(module): function bias_init_with_prob (line 284) | def bias_init_with_prob(prior_prob=0.01): function reset_initialized_parameter (line 291) | def reset_initialized_parameter(model, include_self=True): FILE: paddlespeech/vector/cluster/diarization.py function _graph_connected_component (line 39) | def _graph_connected_component(graph, node_id): function _graph_is_connected (line 83) | def _graph_is_connected(graph): function _set_diag (line 107) | def _set_diag(laplacian, value, norm_laplacian): function _deterministic_vector_sign_flip (line 152) | def _deterministic_vector_sign_flip(u): function _check_random_state (line 175) | def _check_random_state(seed): function spectral_embedding (line 198) | def spectral_embedding( function spectral_clustering (line 285) | def spectral_clustering( class EmbeddingMeta (line 344) | class EmbeddingMeta: method __init__ (line 359) | def __init__( method norm_stats (line 376) | def norm_stats(self): method get_mean_stats (line 384) | def get_mean_stats(self): method get_total_covariance_stats (line 391) | def get_total_covariance_stats(self): method get_model_stat0 (line 398) | def get_model_stat0(self, mod_id): method get_model_stats (line 409) | def get_model_stats(self, mod_id): method sum_stat_per_model (line 419) | def sum_stat_per_model(self): method center_stats (line 449) | def center_stats(self, mu): method rotate_stats (line 464) | def rotate_stats(self, R): method whiten_stats (line 475) | def whiten_stats(self, mu, sigma, isSqrInvSigma=False): method align_models (line 530) | def align_models(self, model_list): method align_segments (line 548) | def align_segments(self, segment_list): class SpecClustUnorm (line 567) | class SpecClustUnorm: method __init__ (line 635) | def __init__(self, min_num_spkrs=2, max_num_spkrs=10): method do_spec_clust (line 640) | def do_spec_clust(self, X, k_oracle, p_val): method get_sim_mat (line 673) | def get_sim_mat(self, X): method p_pruning (line 694) | def p_pruning(self, A, pval): method get_laplacian (line 725) | def get_laplacian(self, M): method get_spec_embs (line 748) | def get_spec_embs(self, L, k_oracle=4): method cluster_embs (line 789) | def cluster_embs(self, emb, k): method get_eigen_gaps (line 807) | def get_eigen_gaps(self, eig_vals): class SpecCluster (line 830) | class SpecCluster(SpectralClustering): method perform_sc (line 831) | def perform_sc(self, X, n_neighbors=10): function is_overlapped (line 857) | def is_overlapped(end1, start2): function merge_ssegs_same_speaker (line 888) | def merge_ssegs_same_speaker(lol): function write_ders_file (line 942) | def write_ders_file(ref_rttm, DER, out_der_file): function get_oracle_num_spkrs (line 976) | def get_oracle_num_spkrs(rec_id, spkr_info): function distribute_overlap (line 1013) | def distribute_overlap(lol): function read_rttm (line 1093) | def read_rttm(rttm_file_path): function write_rttm (line 1116) | def write_rttm(segs_list, out_rttm_file): function do_AHC (line 1152) | def do_AHC(diary_obj, out_rttm_file, rec_id, k_oracle=4, p_val=0.3): function do_spec_clustering (line 1229) | def do_spec_clustering(diary_obj, out_rttm_file, rec_id, k, pval, affini... FILE: paddlespeech/vector/cluster/plda.py function ismember (line 40) | def ismember(list1, list2): class Ndx (line 45) | class Ndx: method __init__ (line 62) | def __init__(self, method save_ndx_object (line 116) | def save_ndx_object(self, output_file_name): method filter (line 120) | def filter(self, modlist, seglist, keep): method validate (line 166) | def validate(self): class Scores (line 184) | class Scores: method __init__ (line 204) | def __init__(self, scores_file_name=""): method __repr__ (line 227) | def __repr__(self): function fa_model_loop (line 238) | def fa_model_loop( function _check_missing_model (line 291) | def _check_missing_model(enroll, test, ndx): class PLDA (line 302) | class PLDA: method __init__ (line 319) | def __init__( method plda (line 341) | def plda( method scoring (line 442) | def scoring( FILE: paddlespeech/vector/exps/ecapa_tdnn/extract_emb.py function extract_audio_embedding (line 32) | def extract_audio_embedding(args, config): FILE: paddlespeech/vector/exps/ecapa_tdnn/test.py function compute_dataset_embedding (line 36) | def compute_dataset_embedding(data_loader, model, mean_var_norm_emb, con... function compute_verification_scores (line 67) | def compute_verification_scores(id2embedding, train_cohort, config): function compute_eer (line 132) | def compute_eer(labels: np.ndarray, scores: np.ndarray) -> List[float]: function main (line 149) | def main(args, config): FILE: paddlespeech/vector/exps/ecapa_tdnn/train.py function main (line 44) | def main(args, config): FILE: paddlespeech/vector/exps/ge2e/audio_processor.py function normalize_volume (line 32) | def normalize_volume(wav, target_dBFS, increase_only=False, function trim_long_silences (line 52) | def trim_long_silences(wav, function compute_partial_slices (line 109) | def compute_partial_slices(n_samples: int, class SpeakerVerificationPreprocessor (line 172) | class SpeakerVerificationPreprocessor(object): method __init__ (line 173) | def __init__(self, method preprocess_wav (line 200) | def preprocess_wav(self, fpath_or_wav, source_sr=None): method melspectrogram (line 223) | def melspectrogram(self, wav): method extract_mel_partials (line 233) | def extract_mel_partials(self, wav): FILE: paddlespeech/vector/exps/ge2e/config.py function get_cfg_defaults (line 60) | def get_cfg_defaults(): FILE: paddlespeech/vector/exps/ge2e/dataset_processors.py function _process_utterance (line 25) | def _process_utterance(path_pair, processor: SpeakerVerificationPreproce... function _process_speaker (line 40) | def _process_speaker(speaker_dir: Path, function _process_dataset (line 77) | def _process_dataset(processor: SpeakerVerificationPreprocessor, function process_librispeech (line 105) | def process_librispeech(processor, function process_voxceleb1 (line 116) | def process_voxceleb1(processor, datasets_root, output_dir, function process_voxceleb2 (line 144) | def process_voxceleb2(processor, datasets_root, output_dir, function process_aidatatang_200zh (line 154) | def process_aidatatang_200zh(processor, function process_magicdata (line 166) | def process_magicdata(processor, datasets_root, output_dir, FILE: paddlespeech/vector/exps/ge2e/inference.py function embed_utterance (line 26) | def embed_utterance(processor, model, fpath_or_wav): function _process_utterance (line 41) | def _process_utterance(ifpath: Path, function main (line 53) | def main(config, args): FILE: paddlespeech/vector/exps/ge2e/random_cycle.py function cycle (line 17) | def cycle(iterable): function random_cycle (line 28) | def random_cycle(iterable): FILE: paddlespeech/vector/exps/ge2e/speaker_verification_dataset.py class MultiSpeakerMelDataset (line 24) | class MultiSpeakerMelDataset(Dataset): method __init__ (line 40) | def __init__(self, dataset_root: Path): method get_example_by_index (line 63) | def get_example_by_index(self, speaker_index, utterance_index): method __getitem__ (line 68) | def __getitem__(self, fpath): method __len__ (line 71) | def __len__(self): class MultiSpeakerSampler (line 75) | class MultiSpeakerSampler(BatchSampler): method __init__ (line 81) | def __init__(self, method __iter__ (line 91) | def __iter__(self): class RandomClip (line 112) | class RandomClip(object): method __init__ (line 113) | def __init__(self, frames): method __call__ (line 116) | def __call__(self, spec): class Collate (line 123) | class Collate(object): method __init__ (line 124) | def __init__(self, num_frames): method __call__ (line 127) | def __call__(self, examples): FILE: paddlespeech/vector/exps/ge2e/train.py class Ge2eExperiment (line 31) | class Ge2eExperiment(ExperimentBase): method setup_model (line 32) | def setup_model(self): method setup_dataloader (line 45) | def setup_dataloader(self): method train_batch (line 60) | def train_batch(self): method valid (line 93) | def valid(self): function main_sp (line 97) | def main_sp(config, args): function main (line 104) | def main(config, args): FILE: paddlespeech/vector/io/augment.py class DropFreq (line 37) | class DropFreq(nn.Layer): method __init__ (line 38) | def __init__( method forward (line 54) | def forward(self, waveforms): class DropChunk (line 94) | class DropChunk(nn.Layer): method __init__ (line 95) | def __init__( method forward (line 130) | def forward(self, waveforms, lengths): class Resample (line 198) | class Resample(nn.Layer): method __init__ (line 199) | def __init__( method _compute_strides (line 214) | def _compute_strides(self): method forward (line 224) | def forward(self, waveforms): method _perform_resample (line 251) | def _perform_resample(self, waveforms): method _output_samples (line 306) | def _output_samples(self, input_num_samp): method _indices_and_weights (line 337) | def _indices_and_weights(self, waveforms): class SpeedPerturb (line 390) | class SpeedPerturb(nn.Layer): method __init__ (line 391) | def __init__( method forward (line 413) | def forward(self, waveform): class AddNoise (line 425) | class AddNoise(nn.Layer): method __init__ (line 426) | def __init__( method forward (line 446) | def forward(self, waveforms, lengths=None): method _load_noise (line 493) | def _load_noise(self, lengths, max_length): method _load_noise_batch_of_size (line 546) | def _load_noise_batch_of_size(self, batch_size): method _load_noise_batch (line 562) | def _load_noise_batch(self): class AddReverb (line 574) | class AddReverb(nn.Layer): method __init__ (line 575) | def __init__( method forward (line 611) | def forward(self, waveforms, lengths=None): method _load_rir (line 664) | def _load_rir(self): class AddBabble (line 680) | class AddBabble(nn.Layer): method __init__ (line 681) | def __init__( method forward (line 693) | def forward(self, waveforms, lengths=None): class TimeDomainSpecAugment (line 732) | class TimeDomainSpecAugment(nn.Layer): method __init__ (line 733) | def __init__( method forward (line 764) | def forward(self, waveforms, lengths=None): class EnvCorrupt (line 777) | class EnvCorrupt(nn.Layer): method __init__ (line 778) | def __init__( method forward (line 817) | def forward(self, waveforms, lengths=None): function build_augment_pipeline (line 836) | def build_augment_pipeline(target_dir=None) -> List[paddle.nn.Layer]: function waveform_augment (line 879) | def waveform_augment(waveforms: paddle.Tensor, FILE: paddlespeech/vector/io/batch.py function waveform_collate_fn (line 19) | def waveform_collate_fn(batch): function feature_normalize (line 37) | def feature_normalize(feats: paddle.Tensor, function pad_right_2d (line 69) | def pad_right_2d(x, target_length, axis=-1, mode='constant', **kwargs): function batch_feature_normalize (line 85) | def batch_feature_normalize(batch, mean_norm: bool=True, std_norm: bool=... function pad_right_to (line 121) | def pad_right_to(array, target_shape, mode="constant", value=0): function batch_pad_right (line 152) | def batch_pad_right(arrays, mode="constant", value=0): FILE: paddlespeech/vector/io/dataset.py class meta_info (line 34) | class meta_info: class CSVDataset (line 62) | class CSVDataset(Dataset): method __init__ (line 63) | def __init__(self, method load_data_csv (line 96) | def load_data_csv(self): method load_speaker_to_label (line 122) | def load_speaker_to_label(self): method convert_to_record (line 138) | def convert_to_record(self, idx: int): method __getitem__ (line 179) | def __getitem__(self, idx): method __len__ (line 187) | def __len__(self): FILE: paddlespeech/vector/io/dataset_from_json.py class meta_info (line 26) | class meta_info: class JSONDataset (line 52) | class JSONDataset(Dataset): method __init__ (line 57) | def __init__(self, json_file: str, feat_type: str='raw', **kwargs): method _get_data (line 76) | def _get_data(self): method _convert_to_record (line 93) | def _convert_to_record(self, idx: int): method __getitem__ (line 112) | def __getitem__(self, idx): method __len__ (line 115) | def __len__(self): FILE: paddlespeech/vector/io/embedding_norm.py class InputNormalization (line 19) | class InputNormalization: method __init__ (line 24) | def __init__( method __call__ (line 50) | def __call__(self, method _compute_current_stats (line 115) | def _compute_current_stats(self, x): method _statistics_dict (line 142) | def _statistics_dict(self): method _load_statistics_dict (line 155) | def _load_statistics_dict(self, state): method to (line 185) | def to(self, device): method save (line 196) | def save(self, path): method _load (line 205) | def _load(self, path, end_of_epoch=False, device=None): FILE: paddlespeech/vector/io/signal_processing.py function blackman_window (line 20) | def blackman_window(win_len, dtype=np.float32): function compute_amplitude (line 28) | def compute_amplitude(waveforms, lengths=None, amp_type="avg", scale="li... function dB_to_amplitude (line 54) | def dB_to_amplitude(SNR): function convolve1d (line 58) | def convolve1d( function notch_filter (line 92) | def notch_filter(notch_freq, filter_width=101, notch_width=0.05): function reverberate (line 130) | def reverberate(waveforms, function rescale (line 181) | def rescale(waveforms, lengths, target_lvl, amp_type="avg", scale="linea... function normalize (line 206) | def normalize(waveforms, lengths=None, amp_type="avg", eps=1e-14): FILE: paddlespeech/vector/models/ecapa_tdnn.py function length_to_mask (line 21) | def length_to_mask(length, max_len=None, dtype=None): class Conv1d (line 38) | class Conv1d(nn.Layer): method __init__ (line 39) | def __init__( method forward (line 86) | def forward(self, x): method _manage_padding (line 109) | def _manage_padding(self, x, kernel_size: int, dilation: int, stride: ... method _get_padding_elem (line 132) | def _get_padding_elem(self, class BatchNorm1d (line 160) | class BatchNorm1d(nn.Layer): method __init__ (line 161) | def __init__( method forward (line 181) | def forward(self, x): class TDNNBlock (line 186) | class TDNNBlock(nn.Layer): method __init__ (line 187) | def __init__( method forward (line 212) | def forward(self, x): class Res2NetBlock (line 216) | class Res2NetBlock(nn.Layer): method __init__ (line 217) | def __init__(self, in_channels, out_channels, scale=8, dilation=1): method forward (line 241) | def forward(self, x): class SEBlock (line 255) | class SEBlock(nn.Layer): method __init__ (line 256) | def __init__(self, in_channels, se_channels, out_channels): method forward (line 274) | def forward(self, x, lengths=None): class AttentiveStatisticsPooling (line 290) | class AttentiveStatisticsPooling(nn.Layer): method __init__ (line 291) | def __init__(self, channels, attention_channels=128, global_context=Tr... method forward (line 313) | def forward(self, x, lengths=None): class SERes2NetBlock (line 364) | class SERes2NetBlock(nn.Layer): method __init__ (line 365) | def __init__( method forward (line 411) | def forward(self, x, lengths=None): class EcapaTdnn (line 424) | class EcapaTdnn(nn.Layer): method __init__ (line 425) | def __init__( method forward (line 501) | def forward(self, x, lengths=None): FILE: paddlespeech/vector/models/lstm_speaker_encoder.py class LSTMSpeakerEncoder (line 24) | class LSTMSpeakerEncoder(nn.Layer): method __init__ (line 25) | def __init__(self, n_mels, num_layers, hidden_size, output_size): method forward (line 34) | def forward(self, utterances, num_speakers, initial_states=None): method embed_sequences (line 40) | def embed_sequences(self, utterances, initial_states=None, reduce=False): method embed_utterance (line 50) | def embed_utterance(self, utterances, initial_states=None): method similarity_matrix (line 55) | def similarity_matrix(self, embeds): method do_gradient_ops (line 106) | def do_gradient_ops(self): method inv_argmax (line 111) | def inv_argmax(self, i, num): method loss (line 114) | def loss(self, embeds): FILE: paddlespeech/vector/modules/layer.py class GradientReversalFunction (line 19) | class GradientReversalFunction(PyLayer): method forward (line 28) | def forward(ctx, x, lambda_=1): method backward (line 35) | def backward(ctx, grads): class GradientReversalLayer (line 43) | class GradientReversalLayer(nn.Layer): method __init__ (line 51) | def __init__(self, lambda_=1): method forward (line 55) | def forward(self, x): FILE: paddlespeech/vector/modules/loss.py class AngularMargin (line 24) | class AngularMargin(nn.Layer): method __init__ (line 25) | def __init__(self, margin=0.0, scale=1.0): method forward (line 38) | def forward(self, outputs, targets): class AdditiveAngularMargin (line 43) | class AdditiveAngularMargin(AngularMargin): method __init__ (line 44) | def __init__(self, margin=0.0, scale=1.0, easy_margin=False): method forward (line 62) | def forward(self, outputs, targets): class LogSoftmaxWrapper (line 74) | class LogSoftmaxWrapper(nn.Layer): method __init__ (line 75) | def __init__(self, loss_fn): method forward (line 85) | def forward(self, outputs, targets, length=None): class NCELoss (line 97) | class NCELoss(nn.Layer): method __init__ (line 119) | def __init__(self, Q, noise_ratio=100, Z_offset=9.5): method forward (line 134) | def forward(self, output, target): method get_Q (line 149) | def get_Q(self, idx, sep_target=True): method get_prob (line 161) | def get_prob(self, idx, scores, sep_target=True): method get_scores (line 173) | def get_scores(self, idx, scores): method get_noise (line 188) | def get_noise(self, batch_size, uniform=True): method get_combined_idx (line 200) | def get_combined_idx(self, target_idx, noise_idx): method nce_loss (line 206) | def nce_loss(self, prob_model, prob_noise_in_model, prob_noise, class FocalLoss (line 231) | class FocalLoss(nn.Layer): method __init__ (line 248) | def __init__(self, alpha=1, gamma=0, size_average=True, ignore_index=-... method forward (line 256) | def forward(self, outputs, targets): class GE2ELoss (line 272) | class GE2ELoss(nn.Layer): method __init__ (line 276) | def __init__(self, init_w=10.0, init_b=-5.0, loss_method="softmax"): method get_cossim (line 285) | def get_cossim(self, embeddings_list, centroids): method cal_softmax_loss (line 303) | def cal_softmax_loss(self, cossims): method cal_contrast_loss (line 314) | def cal_contrast_loss(self, cossims): method forward (line 336) | def forward(self, output, target): FILE: paddlespeech/vector/modules/sid_model.py class SpeakerIdetification (line 19) | class SpeakerIdetification(nn.Layer): method __init__ (line 20) | def __init__( method forward (line 62) | def forward(self, x, lengths=None): FILE: paddlespeech/vector/training/scheduler.py class CyclicLRScheduler (line 17) | class CyclicLRScheduler(LRScheduler): method __init__ (line 18) | def __init__(self, method step (line 30) | def step(self): method get_lr (line 40) | def get_lr(self): FILE: paddlespeech/vector/training/seeding.py function seed_everything (line 23) | def seed_everything(seed: int): FILE: paddlespeech/vector/utils/time.py class Timer (line 18) | class Timer(object): method __init__ (line 21) | def __init__(self, total_step: int): method start (line 28) | def start(self): method stop (line 32) | def stop(self): method count (line 36) | def count(self) -> int: method timing (line 42) | def timing(self) -> float: method is_running (line 51) | def is_running(self) -> bool: method ips (line 55) | def ips(self) -> float: method eta (line 59) | def eta(self) -> str: function seconds_to_hms (line 66) | def seconds_to_hms(seconds: int) -> str: FILE: paddlespeech/vector/utils/vector_utils.py function get_chunks (line 17) | def get_chunks(seg_dur, audio_id, audio_duration): function Q_from_tokens (line 36) | def Q_from_tokens(token_num): FILE: runtime/engine/asr/decoder/common.h type DecoderResult (line 20) | struct DecoderResult { function namespace (line 27) | namespace ppspeech { FILE: runtime/engine/asr/decoder/ctc_beam_search_opt.h function namespace (line 19) | namespace ppspeech { FILE: runtime/engine/asr/decoder/ctc_prefix_beam_search_decoder.cc type ppspeech (line 31) | namespace ppspeech { function PrefixScoreCompare (line 95) | static bool PrefixScoreCompare( FILE: runtime/engine/asr/decoder/ctc_prefix_beam_search_decoder.h function SearchType (line 33) | SearchType Type() const { return SearchType::kPrefixBeamSearch; } FILE: runtime/engine/asr/decoder/ctc_prefix_beam_search_decoder_main.cc function main (line 44) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/decoder/ctc_prefix_beam_search_score.h function namespace (line 24) | namespace ppspeech { type PrefixScoreHash (line 85) | struct PrefixScoreHash { FILE: runtime/engine/asr/decoder/ctc_tlg_decoder.cc type ppspeech (line 17) | namespace ppspeech { FILE: runtime/engine/asr/decoder/ctc_tlg_decoder.h function namespace (line 30) | namespace ppspeech { function class (line 68) | class TLGDecoder : public DecoderBase { FILE: runtime/engine/asr/decoder/ctc_tlg_decoder_main.cc function main (line 35) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/decoder/decoder_itf.h function namespace (line 21) | namespace ppspeech { FILE: runtime/engine/asr/nnet/decodable.cc type ppspeech (line 17) | namespace ppspeech { function int32 (line 37) | int32 Decodable::NumFramesReady() const { return frames_ready_; } function int32 (line 46) | int32 Decodable::NumIndices() const { return 0; } function int32 (line 50) | int32 Decodable::TokenId2NnetId(int32 token_id) { return token_id - 1; } function BaseFloat (line 104) | BaseFloat Decodable::LogLikelihood(int32 frame, int32 index) { FILE: runtime/engine/asr/nnet/decodable.h function namespace (line 23) | namespace ppspeech { FILE: runtime/engine/asr/nnet/nnet_itf.h function namespace (line 31) | namespace ppspeech { FILE: runtime/engine/asr/nnet/nnet_producer.cc type ppspeech (line 19) | namespace ppspeech { FILE: runtime/engine/asr/nnet/nnet_producer.h function namespace (line 22) | namespace ppspeech { FILE: runtime/engine/asr/nnet/u2_nnet.cc type ppspeech (line 28) | namespace ppspeech { FILE: runtime/engine/asr/nnet/u2_nnet.h function virtual (line 40) | virtual void SetChunkSize(int chunk_size) { chunk_size_ = chunk_size; } function virtual (line 41) | virtual void SetNumLeftChunks(int num_left_chunks) { function sos_ (line 58) | int sos_{0} function eos_ (line 59) | int eos_{0} function num_left_chunks_ (line 65) | int num_left_chunks_{-1}; // -1 means all left chunks function class (line 74) | class U2Nnet : public U2NnetBase { FILE: runtime/engine/asr/nnet/u2_nnet_main.cc function main (line 33) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/nnet/u2_nnet_thread_main.cc function main (line 38) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/nnet/u2_onnx_nnet.cc type ppspeech (line 22) | namespace ppspeech { FILE: runtime/engine/asr/nnet/u2_onnx_nnet.h function namespace (line 28) | namespace ppspeech { FILE: runtime/engine/asr/recognizer/recognizer.cc function InitRecognizer (line 18) | bool InitRecognizer(const std::string& model_file, function GetRecognizerInstanceId (line 28) | int GetRecognizerInstanceId() { function InitDecoder (line 32) | void InitDecoder(int instance_id) { function AcceptData (line 36) | void AcceptData(const std::vector& waves, int instance_id) { function SetInputFinished (line 40) | void SetInputFinished(int instance_id) { function GetFinalResult (line 44) | std::string GetFinalResult(int instance_id) { FILE: runtime/engine/asr/recognizer/recognizer_batch_main.cc function SplitUtt (line 33) | void SplitUtt(string wavlist_file, function recognizer_func (line 51) | void recognizer_func(ppspeech::RecognizerController* recognizer_controller, function main (line 126) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/recognizer/recognizer_batch_main2.cc function SplitUtt (line 33) | void SplitUtt(string wavlist_file, function recognizer_func (line 51) | void recognizer_func(std::vector wavlist, function main (line 125) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/recognizer/recognizer_controller.cc type ppspeech (line 18) | namespace ppspeech { FILE: runtime/engine/asr/recognizer/recognizer_controller.h function namespace (line 22) | namespace ppspeech { FILE: runtime/engine/asr/recognizer/recognizer_controller_impl.cc type ppspeech (line 21) | namespace ppspeech { FILE: runtime/engine/asr/recognizer/recognizer_controller_impl.h function namespace (line 30) | namespace ppspeech { FILE: runtime/engine/asr/recognizer/recognizer_instance.cc type ppspeech (line 18) | namespace ppspeech { function RecognizerInstance (line 20) | RecognizerInstance& RecognizerInstance::GetInstance() { FILE: runtime/engine/asr/recognizer/recognizer_instance.h function namespace (line 20) | namespace ppspeech { FILE: runtime/engine/asr/recognizer/recognizer_main.cc function main (line 25) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/recognizer/recognizer_resource.h type DecodeOptions (line 20) | struct DecodeOptions { function rescoring_weight (line 38) | float rescoring_weight{1.0}; FILE: runtime/engine/asr/server/websocket/websocket_client.cc type ppspeech (line 21) | namespace ppspeech { FILE: runtime/engine/asr/server/websocket/websocket_client_main.cc function main (line 26) | int main(int argc, char* argv[]) { FILE: runtime/engine/asr/server/websocket/websocket_server.cc type ppspeech (line 23) | namespace ppspeech { FILE: runtime/engine/asr/server/websocket/websocket_server.h function namespace (line 31) | namespace ppspeech { FILE: runtime/engine/asr/server/websocket/websocket_server_main.cc function InitRecognizerResoure (line 20) | ppspeech::RecognizerResource InitRecognizerResoure() { function main (line 30) | int main(int argc, char *argv[]) { FILE: runtime/engine/audio_classification/nnet/panns_interface.cc type ppspeech (line 20) | namespace ppspeech { function ClsDestroyInstance (line 47) | int ClsDestroyInstance(void* instance) { function ClsFeedForward (line 56) | int ClsFeedForward(void* instance, function ClsReset (line 70) | int ClsReset(void* instance) { FILE: runtime/engine/audio_classification/nnet/panns_interface.h function namespace (line 17) | namespace ppspeech { FILE: runtime/engine/audio_classification/nnet/panns_nnet.cc type ppspeech (line 20) | namespace ppspeech { FILE: runtime/engine/audio_classification/nnet/panns_nnet.h function namespace (line 28) | namespace ppspeech { FILE: runtime/engine/audio_classification/nnet/panns_nnet_main.cc function main (line 26) | int main(int argc, char* argv[]) { FILE: runtime/engine/common/base/basic_types.h type BaseFloat (line 21) | typedef float BaseFloat; type double64 (line 22) | typedef double double64; type int8 (line 24) | typedef signed char int8; type int16 (line 25) | typedef short int16; type int32 (line 26) | typedef int int32; type int64 (line 29) | typedef long int64; type int64 (line 31) | typedef long long int64; type uint8 (line 34) | typedef unsigned char uint8; type uint16 (line 35) | typedef unsigned short uint16; type uint32 (line 36) | typedef unsigned int uint32; type uint64 (line 39) | typedef unsigned long uint64; type uint64 (line 41) | typedef unsigned long long uint64; type char32 (line 44) | typedef signed int char32; FILE: runtime/engine/common/base/config.h function class (line 21) | class Config { function KeyExists (line 231) | bool Config::KeyExists(const string& key) const { function Trim (line 239) | void Config::Trim(string* inout_s) { function Remove (line 257) | void Config::Remove(const string& key) { type string (line 266) | typedef string::size_type pos; function FileExist (line 324) | bool Config::FileExist(std::string filename) { function ReadFile (line 331) | void Config::ReadFile(string filename, string delimiter, string comment) { FILE: runtime/engine/common/base/glog_utils.cc type google (line 4) | namespace google { function InitGoogleLogging (line 5) | void InitGoogleLogging(const char* name) { function InstallFailureSignalHandler (line 9) | void InstallFailureSignalHandler() { FILE: runtime/engine/common/base/glog_utils.h function namespace (line 5) | namespace google { FILE: runtime/engine/common/base/log_impl.cc type ppspeech (line 5) | namespace ppspeech { type log (line 9) | namespace log { FILE: runtime/engine/common/base/log_impl.h function namespace (line 39) | namespace ppspeech { FILE: runtime/engine/common/base/macros.h function namespace (line 26) | namespace ppspeech { FILE: runtime/engine/common/base/safe_queue.h function namespace (line 17) | namespace ppspeech { FILE: runtime/engine/common/base/thread_pool.h function class (line 36) | class ThreadPool { function ThreadPool (line 57) | inline ThreadPool::ThreadPool(size_t threads) : stop(false) { function task (line 84) | auto task = std::make_shared>( function ThreadPool (line 101) | inline ThreadPool::~ThreadPool() { FILE: runtime/engine/common/frontend/assembler.cc type ppspeech (line 17) | namespace ppspeech { FILE: runtime/engine/common/frontend/assembler.h function namespace (line 20) | namespace ppspeech { FILE: runtime/engine/common/frontend/audio_cache.cc type ppspeech (line 19) | namespace ppspeech { function BaseFloat (line 34) | BaseFloat AudioCache::Convert2PCM32(BaseFloat val) { FILE: runtime/engine/common/frontend/audio_cache.h function namespace (line 21) | namespace ppspeech { FILE: runtime/engine/common/frontend/cmvn.cc type ppspeech (line 21) | namespace ppspeech { FILE: runtime/engine/common/frontend/cmvn.h function namespace (line 21) | namespace ppspeech { FILE: runtime/engine/common/frontend/compute_fbank_main.cc function main (line 36) | int main(int argc, char* argv[]) { FILE: runtime/engine/common/frontend/compute_linear_spectrogram_main.cc function main (line 32) | int main(int argc, char* argv[]) { FILE: runtime/engine/common/frontend/data_cache.h function namespace (line 23) | namespace ppspeech { FILE: runtime/engine/common/frontend/db_norm.cc type ppspeech (line 21) | namespace ppspeech { FILE: runtime/engine/common/frontend/db_norm.h function namespace (line 23) | namespace ppspeech { function class (line 43) | class DecibelNormalizer : public FrontendInterface { FILE: runtime/engine/common/frontend/fbank.h function namespace (line 21) | namespace ppspeech { FILE: runtime/engine/common/frontend/feature-fbank.cc type knf (line 27) | namespace knf { function Sqrt (line 29) | static void Sqrt(float *in_out, int32_t n) { function MelBanks (line 56) | const MelBanks *FbankComputer::GetMelBanks(float vtln_warp) { FILE: runtime/engine/common/frontend/feature-fbank.h function namespace (line 31) | namespace knf { function class (line 78) | class FbankComputer { FILE: runtime/engine/common/frontend/feature-functions.cc type knf (line 26) | namespace knf { function ComputePowerSpectrum (line 28) | void ComputePowerSpectrum(std::vector *complex_fft) { FILE: runtime/engine/common/frontend/feature-functions.h function namespace (line 24) | namespace knf { FILE: runtime/engine/common/frontend/feature-window.cc type knf (line 17) | namespace knf { function FirstSampleOfFrame (line 64) | int64_t FirstSampleOfFrame(int32_t frame, const FrameExtractionOptions... function NumFrames (line 75) | int32_t NumFrames(int64_t num_samples, function ExtractWindow (line 125) | void ExtractWindow(int64_t sample_offset, function RemoveDcOffset (line 187) | static void RemoveDcOffset(float *d, int32_t n) { function InnerProduct (line 200) | float InnerProduct(const float *a, const float *b, int32_t n) { function Preemphasize (line 208) | static void Preemphasize(float *d, int32_t n, float preemph_coeff) { function ProcessWindow (line 221) | void ProcessWindow(const FrameExtractionOptions &opts, FILE: runtime/engine/common/frontend/feature-window.h function namespace (line 16) | namespace knf { function class (line 87) | class FeatureWindowFunction { FILE: runtime/engine/common/frontend/feature_cache.cc type ppspeech (line 17) | namespace ppspeech { FILE: runtime/engine/common/frontend/feature_cache.h function namespace (line 20) | namespace ppspeech { FILE: runtime/engine/common/frontend/feature_common.h function namespace (line 20) | namespace ppspeech { FILE: runtime/engine/common/frontend/feature_common_inl.h function namespace (line 16) | namespace ppspeech { FILE: runtime/engine/common/frontend/feature_pipeline.cc type ppspeech (line 17) | namespace ppspeech { FILE: runtime/engine/common/frontend/feature_pipeline.h function namespace (line 37) | namespace ppspeech { function class (line 81) | class FeaturePipeline : public FrontendInterface { FILE: runtime/engine/common/frontend/fftsg.c function cdft (line 288) | void cdft(int n, int isgn, double *a, int *ip, double *w) { function rdft (line 307) | void rdft(int n, int isgn, double *a, int *ip, double *w) { function ddct (line 350) | void ddct(int n, int isgn, double *a, int *ip, double *w) { function ddst (line 405) | void ddst(int n, int isgn, double *a, int *ip, double *w) { function dfct (line 460) | void dfct(int n, double *a, double *t, int *ip, double *w) { function dfst (line 552) | void dfst(int n, double *a, double *t, int *ip, double *w) { function makewt (line 640) | void makewt(int nw, int *ip, double *w) { function makeipt (line 700) | void makeipt(int nw, int *ip) { function makect (line 719) | void makect(int nc, int *ip, double *c) { function cftfsub (line 799) | void cftfsub(int n, double *a, int *ip, int nw, double *w) { function cftbsub (line 846) | void cftbsub(int n, double *a, int *ip, int nw, double *w) { function bitrv2 (line 893) | void bitrv2(int n, int *ip, double *a) { function bitrv2conj (line 1239) | void bitrv2conj(int n, int *ip, double *a) { function bitrv216 (line 1593) | void bitrv216(double *a) { function bitrv216neg (line 1648) | void bitrv216neg(double *a) { function bitrv208 (line 1716) | void bitrv208(double *a) { function bitrv208neg (line 1738) | void bitrv208neg(double *a) { function cftf1st (line 1772) | void cftf1st(int n, double *a, double *w) { function cftb1st (line 1976) | void cftb1st(int n, double *a, double *w) { type cdft_arg_st (line 2181) | struct cdft_arg_st { type cdft_arg_t (line 2188) | typedef struct cdft_arg_st cdft_arg_t; function cftrec4_th (line 2191) | void cftrec4_th(int n, double *a, int nw, double *w) { function cftrec4 (line 2283) | void cftrec4(int n, double *a, int nw, double *w) { function cfttree (line 2304) | int cfttree(int n, int j, int k, double *a, int nw, double *w) { function cftleaf (line 2338) | void cftleaf(int n, int isplt, double *a, int nw, double *w) { function cftmdl1 (line 2402) | void cftmdl1(int n, double *a, double *w) { function cftmdl2 (line 2511) | void cftmdl2(int n, double *a, double *w) { function cftfx41 (line 2644) | void cftfx41(int n, double *a, int nw, double *w) { function cftf161 (line 2664) | void cftf161(double *a, double *w) { function cftf162 (line 2820) | void cftf162(double *a, double *w) { function cftf081 (line 3000) | void cftf081(double *a, double *w) { function cftf082 (line 3060) | void cftf082(double *a, double *w) { function cftf040 (line 3130) | void cftf040(double *a) { function cftb040 (line 3152) | void cftb040(double *a) { function cftx020 (line 3174) | void cftx020(double *a) { function rftfsub (line 3186) | void rftfsub(int n, double *a, int nc, double *c) { function rftbsub (line 3210) | void rftbsub(int n, double *a, int nc, double *c) { function dctsub (line 3234) | void dctsub(int n, double *a, int nc, double *c) { function dstsub (line 3254) | void dstsub(int n, double *a, int nc, double *c) { FILE: runtime/engine/common/frontend/frontend_itf.h function namespace (line 20) | namespace ppspeech { FILE: runtime/engine/common/frontend/linear_spectrogram.cc type ppspeech (line 22) | namespace ppspeech { FILE: runtime/engine/common/frontend/linear_spectrogram.h function namespace (line 23) | namespace ppspeech { type StreamingFeatureTpl (line 54) | typedef StreamingFeatureTpl LinearSpectrogram; FILE: runtime/engine/common/frontend/mel-computations.cc type knf (line 28) | namespace knf { FILE: runtime/engine/common/frontend/mel-computations.h function namespace (line 27) | namespace knf { FILE: runtime/engine/common/frontend/rfft.cc type knf (line 34) | namespace knf { class Rfft::RfftImpl (line 35) | class Rfft::RfftImpl { method RfftImpl (line 37) | explicit RfftImpl(int32_t n) : n_(n), ip_(2 + std::sqrt(n / 2)), w_(... method Compute (line 41) | void Compute(float *in_out) { method Compute (line 49) | void Compute(double *in_out) { FILE: runtime/engine/common/frontend/rfft.h function namespace (line 24) | namespace knf { FILE: runtime/engine/common/frontend/wave-reader.cc type kaldi (line 33) | namespace kaldi { type WaveHeaderReadGofer (line 36) | struct WaveHeaderReadGofer { method WaveHeaderReadGofer (line 41) | WaveHeaderReadGofer(std::istream &is) : is(is), swap(false) { method Expect4ByteTag (line 45) | void Expect4ByteTag(const char *expected) { method Read4ByteTag (line 54) | void Read4ByteTag() { method uint32 (line 60) | uint32 ReadUint32() { method uint16 (line 72) | uint16 ReadUint16() { function WriteUint32 (line 85) | static void WriteUint32(std::ostream &os, int32 i) { function WriteUint16 (line 98) | static void WriteUint16(std::ostream &os, int16 i) { FILE: runtime/engine/common/frontend/wave-reader.h function namespace (line 58) | namespace kaldi { FILE: runtime/engine/common/matrix/kaldi-matrix-inl.h function namespace (line 25) | namespace kaldi { FILE: runtime/engine/common/matrix/kaldi-matrix.cc type kaldi (line 27) | namespace kaldi { class Matrix (line 3192) | class Matrix class Matrix (line 3193) | class Matrix class MatrixBase (line 3194) | class MatrixBase class MatrixBase (line 3195) | class MatrixBase class SubMatrix (line 3196) | class SubMatrix class SubMatrix (line 3197) | class SubMatrix FILE: runtime/engine/common/matrix/kaldi-matrix.h function namespace (line 31) | namespace kaldi { function Real (line 625) | inline Real *Data_workaround() const { return data_; } FILE: runtime/engine/common/matrix/kaldi-vector-inl.h function namespace (line 27) | namespace kaldi { FILE: runtime/engine/common/matrix/kaldi-vector.cc type kaldi (line 33) | namespace kaldi { class Vector (line 1234) | class Vector class Vector (line 1235) | class Vector class VectorBase (line 1236) | class VectorBase class VectorBase (line 1237) | class VectorBase FILE: runtime/engine/common/matrix/kaldi-vector.h function namespace (line 32) | namespace kaldi { FILE: runtime/engine/common/matrix/matrix-common.h function namespace (line 28) | namespace kaldi { FILE: runtime/engine/common/utils/audio_process.cc type ppspeech (line 17) | namespace ppspeech{ function WaveformFloatNormal (line 19) | int WaveformFloatNormal(std::vector* waveform) { function WaveformNormal (line 27) | int WaveformNormal(std::vector* waveform, function PowerTodb (line 67) | float PowerTodb(float in, float ref_value, float amin, float top_db) { FILE: runtime/engine/common/utils/audio_process.h function namespace (line 22) | namespace ppspeech{ FILE: runtime/engine/common/utils/blank_process_test.cc function TEST (line 6) | TEST(BlankProcess, BlankProcessTest) { FILE: runtime/engine/common/utils/file_utils.cc type ppspeech (line 19) | namespace ppspeech { function ReadFileToVector (line 21) | bool ReadFileToVector(const std::string& filename, function ReadFile2String (line 37) | std::string ReadFile2String(const std::string& path) { function FileExists (line 46) | bool FileExists(const std::string& strFilename) { FILE: runtime/engine/common/utils/file_utils.h function namespace (line 17) | namespace ppspeech { FILE: runtime/engine/common/utils/math.cc type ppspeech (line 28) | namespace ppspeech { function LogSumExp (line 31) | float LogSumExp(float x, float y) { type ValGreaterComp (line 40) | struct ValGreaterComp { function TopK (line 49) | void TopK(const std::vector& data, FILE: runtime/engine/common/utils/math.h function namespace (line 20) | namespace ppspeech { FILE: runtime/engine/common/utils/picojson.h function namespace (line 120) | namespace picojson { function class (line 972) | class deny_parse_context { function parse_array_stop (line 1041) | bool parse_array_stop(size_t) { function parse_object_start (line 1045) | bool parse_object_start() { function parse_object_stop (line 1056) | bool parse_object_stop() { function set_null (line 1077) | bool set_null() { return true; } function set_bool (line 1078) | bool set_bool(bool) { return true; } function set_int64 (line 1080) | bool set_int64(int64_t) { return true; } function set_number (line 1082) | bool set_number(double) { return true; } function parse_array_start (line 1088) | bool parse_array_start() { function parse_array_stop (line 1097) | bool parse_array_stop(size_t) { function parse_object_start (line 1101) | bool parse_object_start() { function std (line 1157) | inline std::string parse(value &out, const std::string &s) { function std (line 1163) | inline std::string parse(value &out, std::istream &is) { function set_last_error (line 1179) | inline void set_last_error(const std::string &s) { last_error_t::s... function std (line 1181) | inline const std::string &get_last_error() { return last_error_t::... function namespace (line 1204) | namespace std { FILE: runtime/engine/common/utils/strings.cc type ppspeech (line 19) | namespace ppspeech { function StrSplit (line 21) | std::vector StrSplit(const std::string& str, function StrJoin (line 41) | std::string StrJoin(const std::vector& strs, const char* ... function DelBlank (line 52) | std::string DelBlank(const std::string& str) { function AddBlank (line 73) | std::string AddBlank(const std::string& str) { function ReverseFraction (line 94) | std::string ReverseFraction(const std::string& str) { function ToWString (line 122) | std::wstring ToWString(const std::string& str) { FILE: runtime/engine/common/utils/strings.h function namespace (line 20) | namespace ppspeech { FILE: runtime/engine/common/utils/strings_test.cc function TEST (line 22) | TEST(StringTest, StrSplitTest) { function TEST (line 31) | TEST(StringTest, StrJoinTest) { function TEST (line 37) | TEST(StringText, DelBlankTest) { function TEST (line 54) | TEST(StringTest, AddBlankTest) { function TEST (line 66) | TEST(StringTest, ReverseFractionTest) { FILE: runtime/engine/common/utils/timer.cc type ppspeech (line 22) | namespace ppspeech{ type TimerImpl (line 24) | struct TimerImpl{ method TimerImpl (line 25) | TimerImpl() = default; class CpuTimerImpl (line 32) | class CpuTimerImpl : public TimerImpl { method CpuTimerImpl (line 34) | CpuTimerImpl() { Reset(); } method Reset (line 38) | void Reset() override { begin_ = high_resolution_clock::now(); } method Elapsed (line 41) | double Elapsed() override { FILE: runtime/engine/common/utils/timer.h function namespace (line 21) | namespace ppspeech { FILE: runtime/engine/kaldi/base/io-funcs-inl.h function namespace (line 31) | namespace kaldi { FILE: runtime/engine/kaldi/base/io-funcs.cc type kaldi (line 23) | namespace kaldi { function CheckToken (line 122) | void CheckToken(const char *token) { function WriteToken (line 134) | void WriteToken(std::ostream &os, bool binary, const char *token) { function Peek (line 145) | int Peek(std::istream &is, bool binary) { function WriteToken (line 150) | void WriteToken(std::ostream &os, bool binary, const std::string & tok... function ReadToken (line 154) | void ReadToken(std::istream &is, bool binary, std::string *str) { function PeekToken (line 170) | int PeekToken(std::istream &is, bool binary) { function ExpectToken (line 191) | void ExpectToken(std::istream &is, bool binary, const char *token) { function ExpectToken (line 214) | void ExpectToken(std::istream &is, bool binary, const std::string &tok... FILE: runtime/engine/kaldi/base/io-funcs.h function namespace (line 38) | namespace kaldi { FILE: runtime/engine/kaldi/base/kaldi-error.cc type kaldi (line 38) | namespace kaldi { function SetProgramName (line 46) | void SetProgramName(const char *basename) { type internal (line 74) | namespace internal { function LocateSymbolRange (line 75) | bool LocateSymbolRange(const std::string &trace_name, size_t *begin, function Demangle (line 97) | static std::string Demangle(std::string trace_name) { function KaldiGetStackTrace (line 129) | static std::string KaldiGetStackTrace() { function KaldiAssertFailure_ (line 228) | void KaldiAssertFailure_(const char *func, const char *file, int32 line, function LogHandler (line 239) | LogHandler SetLogHandler(LogHandler handler) { FILE: runtime/engine/kaldi/base/kaldi-error.h function namespace (line 42) | namespace kaldi { FILE: runtime/engine/kaldi/base/kaldi-math.cc type kaldi (line 29) | namespace kaldi { function int32 (line 32) | int32 RoundUpToNearestPowerOfTwo(int32 n) { function Rand (line 45) | int Rand(struct RandomState* state) { function WithProb (line 72) | bool WithProb(BaseFloat prob, struct RandomState* state) { function int32 (line 95) | int32 RandInt(int32 min_val, int32 max_val, struct RandomState* state) { function int32 (line 126) | int32 RandPoisson(float lambda, struct RandomState* state) { function RandGauss2 (line 139) | void RandGauss2(float *a, float *b, RandomState *state) { function RandGauss2 (line 150) | void RandGauss2(double *a, double *b, RandomState *state) { FILE: runtime/engine/kaldi/base/kaldi-math.h function namespace (line 80) | namespace kaldi { type RandomState (line 155) | struct RandomState type RandomState (line 163) | struct RandomState type RandomState (line 175) | struct RandomState function LogAdd (line 184) | inline double LogAdd(double x, double y) { function LogAdd (line 206) | inline float LogAdd(float x, float y) { function LogSub (line 228) | inline double LogSub(double x, double y) { function LogSub (line 247) | inline float LogSub(float x, float y) { function int32 (line 287) | static inline int32 DivideRoundingDown(int32 a, int32 b) { function Hypot (line 354) | inline double Hypot(double x, double y) { return hypot(x, y); } function Hypot (line 355) | inline float Hypot(float x, float y) { return hypotf(x, y); } FILE: runtime/engine/kaldi/base/kaldi-types.h function namespace (line 24) | namespace kaldi { function namespace (line 61) | namespace kaldi { function namespace (line 76) | namespace kaldi { FILE: runtime/engine/kaldi/base/kaldi-utils.cc type kaldi (line 34) | namespace kaldi { function CharToString (line 36) | std::string CharToString(const char &c) { function Sleep (line 45) | void Sleep(float seconds) { FILE: runtime/engine/kaldi/base/kaldi-utils.h function namespace (line 76) | namespace kaldi { FILE: runtime/engine/kaldi/base/timer.cc type kaldi (line 27) | namespace kaldi { class ProfileStats (line 29) | class ProfileStats { method AccStats (line 31) | void AccStats(const char *function_name, double elapsed) { type ProfileStatsEntry (line 59) | struct ProfileStatsEntry { method ProfileStatsEntry (line 62) | ProfileStatsEntry() { } method ProfileStatsEntry (line 63) | ProfileStatsEntry(const char *name): name(name) { } type ReverseSecondComparator (line 66) | struct ReverseSecondComparator { FILE: runtime/engine/kaldi/base/timer.h function namespace (line 28) | namespace kaldi { function class (line 63) | class Timer { FILE: runtime/engine/kaldi/decoder/decodable-itf.h function namespace (line 40) | namespace kaldi { FILE: runtime/engine/kaldi/decoder/lattice-faster-decoder.cc type kaldi (line 26) | namespace kaldi { function BaseFloat (line 470) | BaseFloat LatticeFasterDecoderTpl::FinalRelativeCost() con... function BaseFloat (line 653) | BaseFloat LatticeFasterDecoderTpl::GetCutoff(Elem *list_he... function BaseFloat (line 723) | BaseFloat LatticeFasterDecoderTpl::ProcessEmitting( class LatticeFasterDecoderTpl, decoder::StdToken> (line 1006) | class LatticeFasterDecoderTpl, decoder::StdToken> class LatticeFasterDecoderTpl, decoder::StdToken > (line 1007) | class LatticeFasterDecoderTpl, decoder::St... class LatticeFasterDecoderTpl, decoder::StdToken > (line 1008) | class LatticeFasterDecoderTpl, decoder::Std... class LatticeFasterDecoderTpl , decoder::BackpointerToken> (line 1011) | class LatticeFasterDecoderTpl , decoder::Backpoi... class LatticeFasterDecoderTpl, decoder::BackpointerToken > (line 1012) | class LatticeFasterDecoderTpl, decoder::Ba... class LatticeFasterDecoderTpl, decoder::BackpointerToken > (line 1013) | class LatticeFasterDecoderTpl, decoder::Bac... FILE: runtime/engine/kaldi/decoder/lattice-faster-decoder.h function namespace (line 35) | namespace kaldi { type StdToken (line 137) | struct StdToken { type BackpointerToken (line 178) | struct BackpointerToken { function SetOptions (line 261) | void SetOptions(const LatticeFasterDecoderConfig &config) { type TokenList (line 365) | struct TokenList { FILE: runtime/engine/kaldi/decoder/lattice-faster-online-decoder.cc type kaldi (line 30) | namespace kaldi { class LatticeFasterOnlineDecoderTpl > (line 278) | class LatticeFasterOnlineDecoderTpl > class LatticeFasterOnlineDecoderTpl > (line 279) | class LatticeFasterOnlineDecoderTpl > class LatticeFasterOnlineDecoderTpl > (line 280) | class LatticeFasterOnlineDecoderTpl > FILE: runtime/engine/kaldi/decoder/lattice-faster-online-decoder.h function namespace (line 39) | namespace kaldi { type LatticeFasterOnlineDecoderTpl (line 142) | typedef LatticeFasterOnlineDecoderTpl LatticeFasterOnlineDe... FILE: runtime/engine/kaldi/fstbin/fstaddselfloops.cc function main (line 37) | int main(int argc, char *argv[]) { FILE: runtime/engine/kaldi/fstbin/fstdeterminizestar.cc function signal_handler (line 56) | void signal_handler(int) { debug_location = true; } function main (line 58) | int main(int argc, char *argv[]) { FILE: runtime/engine/kaldi/fstbin/fstisstochastic.cc function main (line 44) | int main(int argc, char *argv[]) { FILE: runtime/engine/kaldi/fstbin/fstminimizeencoded.cc function main (line 35) | int main(int argc, char *argv[]) { FILE: runtime/engine/kaldi/fstbin/fsttablecompose.cc function main (line 39) | int main(int argc, char *argv[]) { FILE: runtime/engine/kaldi/fstext/determinize-lattice-inl.h function namespace (line 34) | namespace fst { type ArcTpl (line 262) | typedef ArcTpl type ArcTpl (line 264) | typedef ArcTpl Arc; type typename (line 271) | typedef typename Arc::StateId StateId; function FreeMostMemory (line 424) | void FreeMostMemory() { function RebuildRepository (line 464) | void RebuildRepository() { // rebuild the string repository, function CheckMemoryUsage (line 498) | bool CheckMemoryUsage() { function Determinize (line 531) | bool Determinize(bool *debug_ptr) { type typename (line 565) | typedef typename Arc::StateId type typename (line 567) | typedef typename Arc::StateId InputStateId; type typename (line 568) | typedef typename Arc::StateId OutputStateId; type LatticeStringRepository (line 571) | typedef LatticeStringRepository StringRepositoryType; type typename (line 572) | typedef const typename StringRepositoryType::Entry *StringId; type Element (line 575) | struct Element { type TempArc (line 590) | struct TempArc { function class (line 612) | class SubsetKey { function class (line 629) | class SubsetEqual { function class (line 653) | class SubsetEqualStates { type std (line 672) | typedef std::unordered_map *, OutputStateId, type std (line 681) | typedef std::unordered_map *, Element, Subset... function ConvertToMinimal (line 688) | void ConvertToMinimal(std::vector *subset) { function OutputStateId (line 706) | OutputStateId MinimalToStateId(const std::vector &subset) { function OutputStateId (line 723) | OutputStateId InitialToStateId(const std::vector &subset_in, function Compare (line 774) | inline int Compare(const Weight &a_w, StringId a_str, const Weight &b_w, function EpsilonClosure (line 807) | void EpsilonClosure(std::vector *subset) { function ProcessFinal (line 902) | void ProcessFinal(OutputStateId output_state) { function NormalizeSubset (line 944) | void NormalizeSubset(std::vector *elems, Weight *tot_weight, function MakeSubsetUnique (line 976) | void MakeSubsetUnique(std::vector *subset) { function ProcessTransition (line 1015) | void ProcessTransition(OutputStateId state, Label ilabel, function class (line 1047) | class PairComparator { function ProcessTransitions (line 1070) | void ProcessTransitions(OutputStateId output_state) { function ProcessState (line 1131) | void ProcessState(OutputStateId output_state) { function Debug (line 1136) | void Debug() { // this function called if you send a signal function IsIsymbolOrFinal (line 1200) | bool IsIsymbolOrFinal(InputStateId state) { // returns true if this state function InitializeDeterminization (line 1225) | void InitializeDeterminization() { type IsymbolOrFinal (line 1315) | enum IsymbolOrFinal { OSF_UNKNOWN = 0, OSF_NO = 1, OSF_YES = 2 } FILE: runtime/engine/kaldi/fstext/determinize-lattice.h function namespace (line 30) | namespace fst { FILE: runtime/engine/kaldi/fstext/determinize-star-inl.h function namespace (line 37) | namespace fst { type GallicWeight (line 913) | typedef GallicWeight ThisGallicWeight; type typename (line 914) | typedef typename Arc::StateId StateId; type typename (line 1056) | typedef typename std::vector::iterator IterType; FILE: runtime/engine/kaldi/fstext/determinize-star.h function namespace (line 32) | namespace fst { FILE: runtime/engine/kaldi/fstext/fstext-utils-inl.h function namespace (line 45) | namespace fst { function DeterminizeStarInLog (line 416) | inline void DeterminizeStarInLog(VectorFst *fst, float delta, function DeterminizeInLog (line 435) | inline void DeterminizeInLog(VectorFst *fst) { function SafeDeterminizeMinimizeWrapperInLog (line 454) | inline void SafeDeterminizeMinimizeWrapperInLog(VectorFst *ifst, function SafeDeterminizeWrapperInLog (line 471) | inline void SafeDeterminizeWrapperInLog(VectorFst *ifst, type typename (line 485) | typedef typename Arc::StateId StateId; type typename (line 486) | typedef typename Arc::Weight Weight; type T (line 506) | typedef T Arg; type T (line 507) | typedef T Result; function T (line 508) | T operator()(const T &t) const { return t; } type typename (line 520) | typedef typename F::Result ClassType; type typename (line 521) | typedef typename Arc::StateId StateId; type typename (line 557) | typedef typename Arc::StateId StateId; type typename (line 558) | typedef typename Arc::Weight Weight; type typename (line 559) | typedef typename F::Result ClassType; type typename (line 588) | typedef typename F::Result ClassType; type typename (line 589) | typedef typename Arc::StateId StateId; type typename (line 590) | typedef typename Arc::Weight Weight; type typename (line 670) | typedef typename Arc::StateId StateId; type typename (line 671) | typedef typename Arc::Weight Weight; type typename (line 672) | typedef typename F::Result ClassType; type typename (line 722) | typedef typename Arc::Weight Weight; type typename (line 723) | typedef typename Arc::StateId StateId; type typename (line 724) | typedef typename Arc::Label Label; type typename (line 820) | typedef typename Arc::Weight Weight; type typename (line 821) | typedef typename Arc::StateId StateId; type typename (line 855) | typedef typename Arc::StateId StateId; type typename (line 856) | typedef typename Arc::Weight Weight; type typename (line 994) | typedef typename Arc::Label Label; type typename (line 995) | typedef typename Arc::StateId StateId; type typename (line 996) | typedef typename Arc::Weight Weight; type Fst (line 1065) | typedef Fst F; type PhiMatcher (line 1066) | typedef PhiMatcher > PM; type typename (line 1091) | typedef typename Arc::Weight Weight; type typename (line 1120) | typedef typename Arc::StateId StateId; type Fst (line 1134) | typedef Fst F; type RhoMatcher (line 1135) | typedef RhoMatcher > RM; function IsStochasticFst (line 1164) | bool IsStochasticFst(const Fst &fst, float delta, type LogArc (line 1202) | typedef LogArc Arc; type Arc (line 1203) | typedef Arc::StateId StateId; type Arc (line 1204) | typedef Arc::Weight Weight; function IsStochasticFstInLog (line 1240) | inline bool IsStochasticFstInLog(const Fst &fst, float delta, FILE: runtime/engine/kaldi/fstext/fstext-utils.h function namespace (line 41) | namespace fst { FILE: runtime/engine/kaldi/fstext/kaldi-fst-io-inl.h function namespace (line 30) | namespace fst { FILE: runtime/engine/kaldi/fstext/kaldi-fst-io.cc type fst (line 30) | namespace fst { function ReadFstKaldi (line 114) | void ReadFstKaldi(std::string rxfilename, fst::StdVectorFst *ofst) { function WriteFstKaldi (line 120) | void WriteFstKaldi(const VectorFst &fst, std::string wxfilenam... FILE: runtime/engine/kaldi/fstext/kaldi-fst-io.h function namespace (line 41) | namespace fst { FILE: runtime/engine/kaldi/fstext/lattice-utils-inl.h function namespace (line 28) | namespace fst { type typename (line 94) | typedef typename Arc::StateId StateId; type typename (line 95) | typedef typename Arc::Label Label; type CompactLatticeWeightTpl (line 96) | typedef CompactLatticeWeightTpl CompactWeight; type ArcTpl (line 97) | typedef ArcTpl CompactArc; type ArcTpl (line 159) | typedef ArcTpl ArcIn; type ArcTpl (line 160) | typedef ArcTpl ArcOut; type typename (line 161) | typedef typename ArcIn::StateId StateId; type ArcTpl (line 198) | typedef ArcTpl Arc; type MutableFst (line 199) | typedef MutableFst Fst; type typename (line 200) | typedef typename Arc::StateId StateId; type CompactLatticeWeightTpl (line 217) | typedef CompactLatticeWeightTpl W; type ArcTpl (line 218) | typedef ArcTpl Arc; type MutableFst (line 219) | typedef MutableFst Fst; type typename (line 220) | typedef typename Arc::StateId StateId; type CompactLatticeWeightTpl (line 237) | typedef CompactLatticeWeightTpl W; type ArcTpl (line 238) | typedef ArcTpl Arc; type ExpandedFst (line 239) | typedef ExpandedFst Fst; type typename (line 240) | typedef typename Arc::StateId StateId; FILE: runtime/engine/kaldi/fstext/lattice-utils.h function namespace (line 28) | namespace fst { FILE: runtime/engine/kaldi/fstext/lattice-weight.h function namespace (line 31) | namespace fst { type TropicalWeightTpl (line 254) | typedef TropicalWeightTpl BaseType; type PairWeight (line 255) | typedef PairWeight PairType; function Compare (line 291) | int Compare(const LatticeWeightTpl &w1, function const (line 325) | bool operator()(const Weight &w1, const Weight &w2) const { function const (line 339) | bool operator()(const Weight &w1, const Weight &w2) const { function const (line 353) | bool operator()(const Weight &w1, const Weight &w2) const { type FloatType (line 375) | typedef FloatType T; function ApproxEqual (line 391) | bool ApproxEqual(const LatticeWeightTpl &w1, type CompactLatticeWeightTpl (line 432) | typedef CompactLatticeWeightTpl ReverseWeight; function SetWeight (line 457) | void SetWeight(const W &w) { weight_ = w; } function SetString (line 459) | void SetString(const std::vector &s) { string_ = s; } function std (line 471) | inline static std::string GetIntSizeString() { function std (line 477) | static const std::string &Type() { function CompactLatticeWeightTpl (line 506) | CompactLatticeWeightTpl Quantize(float delta = kDelta) const { function uint64 (line 510) | static constexpr uint64 Properties() { function Hash (line 550) | size_t Hash() const { function ApproxEqual (line 579) | bool ApproxEqual(const CompactLatticeWeightTpl &w1, function Compare (line 599) | int Compare(const CompactLatticeWeightTpl &w1, function const (line 628) | bool operator()(const Weight &w1, const Weight &w2) const { function const (line 642) | bool operator()(const Weight &w1, const Weight &w2) const { function const (line 656) | bool operator()(const Weight &w1, const Weight &w2) const { function Compare (line 666) | inline int Compare(const TropicalWeight &w1, const TropicalWeight &w2) { function Weight (line 814) | Weight operator()(const Weight &w1, const Weight &w2) const { function ConvertLatticeWeight (line 848) | void ConvertLatticeWeight(const LatticeWeightTpl &w_in, function ConvertLatticeWeight (line 855) | void ConvertLatticeWeight( function ConvertLatticeWeight (line 866) | void ConvertLatticeWeight(const LatticeWeightTpl &w_in, function ConvertToCost (line 874) | double ConvertToCost(const LatticeWeightTpl &w) { function ConvertToCost (line 879) | double ConvertToCost( function ConvertToCost (line 886) | double ConvertToCost(const TropicalWeightTpl &w) { FILE: runtime/engine/kaldi/fstext/pre-determinize-inl.h function namespace (line 228) | namespace fst { type typename (line 334) | typedef typename Arc::Label Label; type typename (line 335) | typedef typename Arc::StateId StateId; type ArcId (line 336) | typedef size_t ArcId; type typename (line 338) | typedef typename Arc::Weight Weight; type typename (line 499) | typedef typename std::set< type typename (line 514) | typedef typename std::map< type typename (line 518) | typedef typename std::set< type typename (line 662) | typedef typename Arc::Label Label; type typename (line 663) | typedef typename Arc::StateId StateId; type typename (line 664) | typedef typename Arc::Weight Weight; type typename (line 721) | typedef typename Arc::Label Label; type typename (line 722) | typedef typename Arc::StateId StateId; type typename (line 757) | typedef typename Arc::StateId StateId; type typename (line 758) | typedef typename Arc::Weight Weight; FILE: runtime/engine/kaldi/fstext/pre-determinize.h function namespace (line 34) | namespace fst { FILE: runtime/engine/kaldi/fstext/remove-eps-local-inl.h function namespace (line 26) | namespace fst { function RemoveEpsLocalSpecial (line 311) | void RemoveEpsLocalSpecial(MutableFst *fst) { FILE: runtime/engine/kaldi/fstext/remove-eps-local.h function namespace (line 27) | namespace fst { FILE: runtime/engine/kaldi/fstext/table-matcher.h function namespace (line 29) | namespace fst { function Find (line 163) | bool Find(Label match_label) { function Next (line 187) | void Next() { function Arc (line 209) | const Arc &Value() { function virtual (line 223) | virtual uint64 Properties(uint64 props) const { function virtual (line 230) | virtual bool Find_(Label label) { return Find(label); } function virtual (line 233) | virtual void Next_() { Next(); } type typename (line 251) | typedef typename F::Arc Arc; type typename (line 252) | typedef typename Arc::Label Label; type typename (line 253) | typedef typename Arc::StateId StateId; type StateId (line 254) | typedef StateId type typename (line 257) | typedef typename Arc::Weight Weight; type TableMatcherImpl (line 258) | typedef TableMatcherImpl Impl; function virtual (line 274) | virtual MatchType Type(bool test) const { return impl_->Type(test); } function SetState (line 276) | void SetState(StateId s) { return impl_->SetState(s); } function Find (line 278) | bool Find(Label match_label) { return impl_->Find(match_label); } function Next (line 282) | void Next() { return impl_->Next(); } function Arc (line 286) | const Arc &Value() { return impl_->Value(); } function virtual (line 292) | virtual uint64 Properties(uint64 props) const { function virtual (line 299) | virtual void SetState_(StateId s) { impl_->SetState(s); } function virtual (line 300) | virtual bool Find_(Label label) { return impl_->Find(label); } function virtual (line 303) | virtual void Next_() { impl_->Next(); } function TableMatcherOptions (line 308) | struct TableComposeOptions : public TableMatcherOptions { FILE: runtime/engine/kaldi/lat/determinize-lattice-pruned.cc type fst (line 31) | namespace fst { class LatticeDeterminizerPruned (line 47) | class LatticeDeterminizerPruned { method Output (line 60) | void Output(MutableFst *ofst, bool destroy = true) { method Output (line 111) | void Output(MutableFst *ofst, bool destroy = true) { method LatticeDeterminizerPruned (line 191) | LatticeDeterminizerPruned(const ExpandedFst &ifst, method FreeOutputStates (line 201) | void FreeOutputStates() { method FreeMostMemory (line 210) | void FreeMostMemory() { method RebuildRepository (line 249) | void RebuildRepository() { // rebuild the string repository, method CheckMemoryUsage (line 292) | bool CheckMemoryUsage() { method Determinize (line 333) | bool Determinize(double *effective_beam) { type Element (line 394) | struct Element { type TempArc (line 416) | struct TempArc { class SubsetKey (line 436) | class SubsetKey { class SubsetEqual (line 451) | class SubsetEqual { method SubsetEqual (line 467) | SubsetEqual(float delta): delta_(delta) {} method SubsetEqual (line 468) | SubsetEqual(): delta_(kDelta) {} class SubsetEqualStates (line 473) | class SubsetEqualStates { method ConvertToMinimal (line 505) | void ConvertToMinimal(vector *subset) { method OutputStateId (line 524) | OutputStateId MinimalToStateId(const vector &subset, method OutputStateId (line 556) | OutputStateId InitialToStateId(const vector &subset_in, method Compare (line 609) | inline int Compare(const Weight &a_w, StringId a_str, method EpsilonClosure (line 637) | void EpsilonClosure(vector *subset) { method ProcessFinal (line 736) | void ProcessFinal(OutputStateId output_state_id) { method NormalizeSubset (line 779) | void NormalizeSubset(vector *elems, method MakeSubsetUnique (line 812) | void MakeSubsetUnique(vector *subset) { method ProcessTransition (line 849) | void ProcessTransition(OutputStateId ostate_id, Label ilabel, vector... class PairComparator (line 885) | class PairComparator { method ProcessTransitions (line 905) | void ProcessTransitions(OutputStateId output_state_id) { method IsIsymbolOrFinal (line 990) | bool IsIsymbolOrFinal(InputStateId state) { // returns true if this ... method ComputeBackwardWeight (line 1016) | void ComputeBackwardWeight() { method InitializeDeterminization (line 1042) | void InitializeDeterminization() { type OutputState (line 1097) | struct OutputState { method OutputState (line 1108) | OutputState(const vector &minimal_subset, type Task (line 1148) | struct Task { type TaskCompare (line 1156) | struct TaskCompare { type IsymbolOrFinal (line 1173) | enum IsymbolOrFinal { OSF_UNKNOWN = 0, OSF_NO = 1, OSF_YES = 2 } method AddStrings (line 1182) | void AddStrings(const vector &vec, function DeterminizeLatticePruned (line 1196) | bool DeterminizeLatticePruned( function DeterminizeLatticePruned (line 1248) | bool DeterminizeLatticePruned(const ExpandedFst > &ifst, FILE: runtime/engine/kaldi/lat/determinize-lattice-pruned.h function namespace (line 35) | namespace fst { FILE: runtime/engine/kaldi/lat/kaldi-lattice.cc type kaldi (line 25) | namespace kaldi { function CompactLattice (line 29) | CompactLattice* ConvertToCompactLattice(fst::VectorFst... function CompactLattice (line 40) | CompactLattice* ConvertToCompactLattice(CompactLattice *ifst) { function Lattice (line 46) | Lattice* ConvertToLattice(fst::VectorFst *ifst) { function Lattice (line 57) | Lattice* ConvertToLattice(Lattice *ifst) { function WriteCompactLattice (line 62) | bool WriteCompactLattice(std::ostream &os, bool binary, class LatticeReader (line 94) | class LatticeReader { method ReadText (line 108) | static std::pair ReadText( method StrToWeight (line 257) | static bool StrToWeight(const std::string &s, bool allow_zero, Weigh... method StrToCWeight (line 266) | static bool StrToCWeight(const std::string &s, bool allow_zero, CWe... function CompactLattice (line 277) | CompactLattice *ReadCompactLatticeText(std::istream &is) { function Lattice (line 291) | Lattice *ReadLatticeText(std::istream &is) { function ReadCompactLattice (line 304) | bool ReadCompactLattice(std::istream &is, bool binary, function WriteLattice (line 388) | bool WriteLattice(std::ostream &os, bool binary, const Lattice &t) { function ReadLattice (line 417) | bool ReadLattice(std::istream &is, bool binary, FILE: runtime/engine/kaldi/lat/kaldi-lattice.h function namespace (line 29) | namespace kaldi { FILE: runtime/engine/kaldi/lat/lattice-functions.cc type kaldi (line 32) | namespace kaldi { function PruneLattice (line 236) | bool PruneLattice(BaseFloat beam, LatType *lat) { FILE: runtime/engine/kaldi/lat/lattice-functions.h function namespace (line 37) | namespace kaldi { FILE: runtime/engine/kaldi/lm/arpa-file-parser.cc type kaldi (line 30) | namespace kaldi { function TrimTrailingWhitespace (line 41) | void TrimTrailingWhitespace(std::string *str) { FILE: runtime/engine/kaldi/lm/arpa-file-parser.h function namespace (line 32) | namespace kaldi { type NGram (line 68) | struct NGram { function class (line 81) | class ArpaFileParser { FILE: runtime/engine/kaldi/lm/arpa-lm-compiler.cc type kaldi (line 33) | namespace kaldi { class ArpaLmCompilerImplInterface (line 35) | class ArpaLmCompilerImplInterface { class GeneralHistKey (line 48) | class GeneralHistKey { method GeneralHistKey (line 52) | GeneralHistKey(InputIt begin, InputIt end) : vector_(begin, end) { } method GeneralHistKey (line 54) | GeneralHistKey() : vector_() { } method GeneralHistKey (line 58) | GeneralHistKey Tails() const { type HashType (line 66) | struct HashType : public std::unary_function { class OptimizedHistKey (line 83) | class OptimizedHistKey { method OptimizedHistKey (line 90) | OptimizedHistKey(InputIt begin, InputIt end) : data_(0) { method OptimizedHistKey (line 95) | OptimizedHistKey() : data_(0) { } method OptimizedHistKey (line 96) | OptimizedHistKey Tails() const { type HashType (line 102) | struct HashType : public std::unary_function::AddStateWithBackoff(HistKey key, FILE: runtime/engine/kaldi/lm/arpa-lm-compiler.h function namespace (line 28) | namespace kaldi { FILE: runtime/engine/kaldi/lmbin/arpa2fst.cc function main (line 26) | int main(int argc, char *argv[]) { FILE: runtime/engine/kaldi/util/basic-filebuf.h function namespace (line 22) | namespace kaldi { FILE: runtime/engine/kaldi/util/const-integer-set-inl.h function namespace (line 27) | namespace kaldi { FILE: runtime/engine/kaldi/util/const-integer-set.h function namespace (line 41) | namespace kaldi { FILE: runtime/engine/kaldi/util/edit-distance-inl.h function namespace (line 27) | namespace kaldi { FILE: runtime/engine/kaldi/util/edit-distance.h function namespace (line 32) | namespace kaldi { FILE: runtime/engine/kaldi/util/hash-list-inl.h function namespace (line 28) | namespace kaldi { FILE: runtime/engine/kaldi/util/hash-list.h type Elem (line 52) | struct Elem { function Size (line 113) | inline size_t Size() { return hash_size_; } type HashBucket (line 118) | struct HashBucket { FILE: runtime/engine/kaldi/util/kaldi-cygwin-io-inl.h function namespace (line 43) | namespace kaldi { FILE: runtime/engine/kaldi/util/kaldi-holder-inl.h function namespace (line 35) | namespace kaldi { function Write (line 230) | static bool Write(std::ostream &os, bool binary, const T &t) { function Clear (line 260) | void Clear() { t_.clear(); } function Read (line 263) | bool Read(std::istream &is) { function IsReadInBinary (line 317) | static bool IsReadInBinary() { return true; } function Swap (line 321) | void Swap(BasicVectorHolder *other) { function ExtractRange (line 325) | bool ExtractRange(const BasicVectorHolder &other, function Write (line 349) | static bool Write(std::ostream &os, bool binary, const T &t) { function Clear (line 396) | void Clear() { t_.clear(); } function Read (line 399) | bool Read(std::istream &is) { function IsReadInBinary (line 468) | static bool IsReadInBinary() { return true; } function Swap (line 472) | void Swap(BasicVectorVectorHolder *other) { function ExtractRange (line 476) | bool ExtractRange(BasicVectorVectorHolder &other, function Write (line 500) | static bool Write(std::ostream &os, bool binary, const T &t) { function Clear (line 536) | void Clear() { t_.clear(); } function Read (line 539) | bool Read(std::istream &is) { function IsReadInBinary (line 613) | static bool IsReadInBinary() { return true; } function Swap (line 617) | void Swap(BasicPairVectorHolder *other) { function ExtractRange (line 621) | bool ExtractRange(const BasicPairVectorHolder &other, function class (line 639) | class TokenHolder { function class (line 695) | class TokenVectorHolder { FILE: runtime/engine/kaldi/util/kaldi-holder.cc type kaldi (line 24) | namespace kaldi { function ParseMatrixRangeSpecifier (line 33) | bool ParseMatrixRangeSpecifier(const std::string &range, function ExtractObjectRange (line 140) | bool ExtractObjectRange(const Matrix &input, const std::string &... function ExtractObjectRange (line 165) | bool ExtractObjectRange(const Vector &input, const std::string &... function ExtractRangeSpecifier (line 214) | bool ExtractRangeSpecifier(const std::string &rxfilename_with_range, FILE: runtime/engine/kaldi/util/kaldi-holder.h function namespace (line 31) | namespace kaldi { FILE: runtime/engine/kaldi/util/kaldi-io-inl.h function namespace (line 24) | namespace kaldi { FILE: runtime/engine/kaldi/util/kaldi-io.cc function FILE (line 41) | static FILE *popen(const char* command, const char* mode) { type kaldi (line 50) | namespace kaldi { function PrintableRxfilename (line 61) | std::string PrintableRxfilename(const std::string &rxfilename) { function PrintableWxfilename (line 73) | std::string PrintableWxfilename(const std::string &wxfilename) { function OutputType (line 85) | OutputType ClassifyWxfilename(const std::string &filename) { function InputType (line 138) | InputType ClassifyRxfilename(const std::string &filename) { class OutputImplBase (line 188) | class OutputImplBase { class FileOutputImpl (line 199) | class FileOutputImpl: public OutputImplBase { method Open (line 201) | virtual bool Open(const std::string &filename, bool binary) { method Close (line 218) | virtual bool Close() { class StandardOutputImpl (line 237) | class StandardOutputImpl: public OutputImplBase { method StandardOutputImpl (line 239) | StandardOutputImpl(): is_open_(false) { } method Open (line 241) | virtual bool Open(const std::string &filename, bool binary) { method Close (line 258) | virtual bool Close() { class PipeOutputImpl (line 276) | class PipeOutputImpl: public OutputImplBase { method PipeOutputImpl (line 278) | PipeOutputImpl(): f_(NULL), os_(NULL) { } method Open (line 280) | virtual bool Open(const std::string &wxfilename, bool binary) { method Close (line 319) | virtual bool Close() { class InputImplBase (line 359) | class InputImplBase { class FileInputImpl (line 381) | class FileInputImpl: public InputImplBase { method Open (line 383) | virtual bool Open(const std::string &filename, bool binary) { method int32 (line 399) | virtual int32 Close() { method InputType (line 408) | virtual InputType MyType() { return kFileInput; } class StandardInputImpl (line 419) | class StandardInputImpl: public InputImplBase { method StandardInputImpl (line 421) | StandardInputImpl(): is_open_(false) { } method Open (line 423) | virtual bool Open(const std::string &filename, bool binary) { method InputType (line 441) | virtual InputType MyType() { return kStandardInput; } method int32 (line 443) | virtual int32 Close() { class PipeInputImpl (line 453) | class PipeInputImpl: public InputImplBase { method PipeInputImpl (line 455) | PipeInputImpl(): f_(NULL), is_(NULL) { } method Open (line 457) | virtual bool Open(const std::string &rxfilename, bool binary) { method int32 (line 503) | virtual int32 Close() { method InputType (line 528) | virtual InputType MyType() { return kPipeInput; } class OffsetFileInputImpl (line 556) | class OffsetFileInputImpl: public InputImplBase { method SplitFilename (line 562) | static void SplitFilename(const std::string &rxfilename, method Seek (line 578) | bool Seek(size_t offset) { method Open (line 602) | virtual bool Open(const std::string &rxfilename, bool binary) { method int32 (line 643) | virtual int32 Close() { method InputType (line 652) | virtual InputType MyType() { return kOffsetFileInput; } function int32 (line 761) | int32 Input::Close() { function ReadKaldiObject (line 832) | void ReadKaldiObject(const std::string &filename, function ReadKaldiObject (line 857) | void ReadKaldiObject(const std::string &filename, type kaldi (line 59) | namespace kaldi { function PrintableRxfilename (line 61) | std::string PrintableRxfilename(const std::string &rxfilename) { function PrintableWxfilename (line 73) | std::string PrintableWxfilename(const std::string &wxfilename) { function OutputType (line 85) | OutputType ClassifyWxfilename(const std::string &filename) { function InputType (line 138) | InputType ClassifyRxfilename(const std::string &filename) { class OutputImplBase (line 188) | class OutputImplBase { class FileOutputImpl (line 199) | class FileOutputImpl: public OutputImplBase { method Open (line 201) | virtual bool Open(const std::string &filename, bool binary) { method Close (line 218) | virtual bool Close() { class StandardOutputImpl (line 237) | class StandardOutputImpl: public OutputImplBase { method StandardOutputImpl (line 239) | StandardOutputImpl(): is_open_(false) { } method Open (line 241) | virtual bool Open(const std::string &filename, bool binary) { method Close (line 258) | virtual bool Close() { class PipeOutputImpl (line 276) | class PipeOutputImpl: public OutputImplBase { method PipeOutputImpl (line 278) | PipeOutputImpl(): f_(NULL), os_(NULL) { } method Open (line 280) | virtual bool Open(const std::string &wxfilename, bool binary) { method Close (line 319) | virtual bool Close() { class InputImplBase (line 359) | class InputImplBase { class FileInputImpl (line 381) | class FileInputImpl: public InputImplBase { method Open (line 383) | virtual bool Open(const std::string &filename, bool binary) { method int32 (line 399) | virtual int32 Close() { method InputType (line 408) | virtual InputType MyType() { return kFileInput; } class StandardInputImpl (line 419) | class StandardInputImpl: public InputImplBase { method StandardInputImpl (line 421) | StandardInputImpl(): is_open_(false) { } method Open (line 423) | virtual bool Open(const std::string &filename, bool binary) { method InputType (line 441) | virtual InputType MyType() { return kStandardInput; } method int32 (line 443) | virtual int32 Close() { class PipeInputImpl (line 453) | class PipeInputImpl: public InputImplBase { method PipeInputImpl (line 455) | PipeInputImpl(): f_(NULL), is_(NULL) { } method Open (line 457) | virtual bool Open(const std::string &rxfilename, bool binary) { method int32 (line 503) | virtual int32 Close() { method InputType (line 528) | virtual InputType MyType() { return kPipeInput; } class OffsetFileInputImpl (line 556) | class OffsetFileInputImpl: public InputImplBase { method SplitFilename (line 562) | static void SplitFilename(const std::string &rxfilename, method Seek (line 578) | bool Seek(size_t offset) { method Open (line 602) | virtual bool Open(const std::string &rxfilename, bool binary) { method int32 (line 643) | virtual int32 Close() { method InputType (line 652) | virtual InputType MyType() { return kOffsetFileInput; } function int32 (line 761) | int32 Input::Close() { function ReadKaldiObject (line 832) | void ReadKaldiObject(const std::string &filename, function ReadKaldiObject (line 857) | void ReadKaldiObject(const std::string &filename, FILE: runtime/engine/kaldi/util/kaldi-io.h function namespace (line 34) | namespace kaldi { FILE: runtime/engine/kaldi/util/kaldi-semaphore.cc type kaldi (line 26) | namespace kaldi { FILE: runtime/engine/kaldi/util/kaldi-semaphore.h function namespace (line 28) | namespace kaldi { FILE: runtime/engine/kaldi/util/kaldi-table-inl.h function namespace (line 39) | namespace kaldi { function virtual (line 151) | virtual std::string Key() { function FreeCurrent (line 179) | void FreeCurrent() { function SwapHolder (line 191) | void SwapHolder(Holder *other_holder) { function Next (line 223) | void Next() { function virtual (line 244) | virtual bool Close() { function virtual (line 277) | virtual ~SequentialTableReaderScriptImpl() { function SetErrorState (line 350) | void SetErrorState() { function NextScpLine (line 361) | void NextScpLine() { type StateType (line 449) | enum StateType { function state_ (line 488) | state_(kUninitialized) { } function virtual (line 490) | virtual bool Open(const std::string &rspecifier) { function virtual (line 531) | virtual void Next() { function virtual (line 581) | virtual bool IsOpen() const { function virtual (line 591) | virtual bool Done() const { function virtual (line 604) | virtual std::string Key() { function virtual (line 626) | virtual void FreeCurrent() { function SwapHolder (line 635) | void SwapHolder(Holder *other_holder) { function virtual (line 648) | virtual bool Close() { function virtual (line 676) | virtual ~SequentialTableReaderArchiveImpl() { type StateType (line 688) | enum StateType { // [The state of the reading process] [does ho... function base_reader_ (line 709) | base_reader_(base_reader) {} function virtual (line 714) | virtual bool Open(const std::string &rxfilename) { function RunInBackground (line 733) | void RunInBackground() { function run (line 768) | static void run(SequentialTableReaderBackgroundImpl *object) { function virtual (line 774) | virtual std::string Key() { function virtual (line 779) | virtual T &Value() { function SwapHolder (line 784) | void SwapHolder(Holder *other_holder) { function virtual (line 787) | virtual void FreeCurrent() { function virtual (line 797) | virtual void Next() { function virtual (line 816) | virtual bool Close() { function impl_ (line 858) | impl_(NULL) { function virtual (line 982) | virtual bool IsOpen() const = 0; function virtual (line 1030) | virtual bool IsOpen() const { function virtual (line 1041) | virtual bool Write(const std::string &key, const T &value) { function virtual (line 1073) | virtual void Flush() { function virtual (line 1083) | virtual bool Close() { function state_ (line 1103) | state_(kUninitialized) {} function virtual (line 1106) | virtual ~TableWriterArchiveImpl() { function virtual (line 1142) | virtual bool Open(const std::string &wspecifier) { function virtual (line 1180) | virtual bool Close() { function virtual (line 1191) | virtual bool Write(const std::string &key, const T &value) { function virtual (line 1230) | virtual void Flush() { } function virtual (line 1233) | virtual ~TableWriterScriptImpl() { type typename (line 1251) | typedef typename std::vector > function virtual (line 1293) | virtual bool Open(const std::string &wspecifier) { function virtual (line 1331) | virtual bool IsOpen() const { function MakeFilename (line 1340) | void MakeFilename(typename std::ostream::pos_type streampos, function virtual (line 1355) | virtual bool Write(const std::string &key, const T &value) { function virtual (line 1416) | virtual void Flush() { function virtual (line 1427) | virtual bool Close() { function state_ (line 1440) | state_(kUninitialized) {} function virtual (line 1444) | virtual ~TableWriterBothImpl() { function impl_ (line 1467) | impl_(NULL) { function virtual (line 1581) | virtual ~RandomAccessTableReaderImplBase() {} function virtual (line 1600) | virtual bool Open(const std::string &rspecifier) { function virtual (line 1652) | virtual bool Close() { function virtual (line 1669) | virtual bool HasKey(const std::string &key) { function virtual (line 1679) | virtual const T& Value(const std::string &key) { function virtual (line 1693) | virtual ~RandomAccessTableReaderScriptImpl() { } function LookupKey (line 1802) | bool LookupKey(const std::string &key, size_t *script_offset) { function virtual (line 1903) | virtual bool Open(const std::string &rspecifier) { function ReadNextObject (line 1935) | void ReadNextObject() { function virtual (line 1982) | virtual bool IsOpen() const { function CloseInternal (line 1993) | bool CloseInternal() { function virtual (line 2070) | virtual bool Close() { function virtual (line 2076) | virtual bool HasKey(const std::string &key) { function virtual (line 2079) | virtual const T & Value(const std::string &key) { function virtual (line 2089) | virtual ~RandomAccessTableReaderDSortedArchiveImpl() { function virtual (line 2189) | virtual bool Close() { function virtual (line 2199) | virtual bool HasKey(const std::string &key) { function virtual (line 2212) | virtual const T & Value(const std::string &key) { function virtual (line 2228) | virtual ~RandomAccessTableReaderSortedArchiveImpl() { function FindKeyInternal (line 2258) | bool FindKeyInternal(const std::string &key, size_t *index) { type PairCompare (line 2335) | struct PairCompare { type typename (line 2373) | typedef typename Holder::T T; function virtual (line 2382) | virtual bool Close() { function virtual (line 2394) | virtual bool HasKey(const std::string &key) { function virtual (line 2398) | virtual const T & Value(const std::string &key) { function virtual (line 2406) | virtual ~RandomAccessTableReaderUnsortedArchiveImpl() { function FindKeyInternal (line 2435) | bool FindKeyInternal(const std::string &key, const T **value_ptr = NULL) { type unordered_map (line 2492) | typedef unordered_map MapType; function impl_ (line 2510) | impl_(NULL) { FILE: runtime/engine/kaldi/util/kaldi-table.cc type kaldi (line 23) | namespace kaldi { function ReadScriptFile (line 26) | bool ReadScriptFile(const std::string &rxfilename, function ReadScriptFile (line 51) | bool ReadScriptFile(std::istream &is, function WriteScriptFile (line 83) | bool WriteScriptFile(std::ostream &os, function WriteScriptFile (line 115) | bool WriteScriptFile(const std::string &wxfilename, function WspecifierType (line 135) | WspecifierType ClassifyWspecifier(const std::string &wspecifier, function RspecifierType (line 225) | RspecifierType ClassifyRspecifier(const std::string &rspecifier, FILE: runtime/engine/kaldi/util/kaldi-table.h function namespace (line 31) | namespace kaldi { function impl_ (line 291) | impl_(NULL) { } function impl_ (line 355) | impl_(NULL) { KALDI_ASSERT(other.impl_ == NULL); } function impl_ (line 372) | impl_(NULL) { } function IsOpen (line 384) | bool IsOpen() const; function Close (line 450) | inline bool Close() { return reader_.Close(); } FILE: runtime/engine/kaldi/util/kaldi-thread.cc type kaldi (line 24) | namespace kaldi { FILE: runtime/engine/kaldi/util/kaldi-thread.h function namespace (line 57) | namespace kaldi { function Run (line 189) | void Run(C *c) { function Wait (line 208) | void Wait() { // You call this at the end if it's more convenient type RunTaskArgsList (line 224) | struct RunTaskArgsList { FILE: runtime/engine/kaldi/util/options-itf.h function namespace (line 24) | namespace kaldi { FILE: runtime/engine/kaldi/util/parse-options.cc type kaldi (line 36) | namespace kaldi { type ShellType (line 210) | enum ShellType { kBash = 0 } function MustBeQuoted (line 224) | static bool MustBeQuoted(const std::string &str, ShellType st) { function QuoteAndEscape (line 263) | static std::string QuoteAndEscape(const std::string &str, ShellType st) { function int32 (line 588) | int32 ParseOptions::ToInt(const std::string &str) { function uint32 (line 595) | uint32 ParseOptions::ToUint(const std::string &str) { FILE: runtime/engine/kaldi/util/parse-options.h function namespace (line 32) | namespace kaldi { FILE: runtime/engine/kaldi/util/simple-io-funcs.cc type kaldi (line 22) | namespace kaldi { function WriteIntegerVectorSimple (line 24) | bool WriteIntegerVectorSimple(const std::string &wxfilename, function ReadIntegerVectorSimple (line 33) | bool ReadIntegerVectorSimple(const std::string &rxfilename, function WriteIntegerVectorVectorSimple (line 46) | bool WriteIntegerVectorVectorSimple(const std::string &wxfilename, function ReadIntegerVectorVectorSimple (line 62) | bool ReadIntegerVectorVectorSimple(const std::string &rxfilename, FILE: runtime/engine/kaldi/util/simple-io-funcs.h function namespace (line 33) | namespace kaldi { FILE: runtime/engine/kaldi/util/simple-options.cc type kaldi (line 24) | namespace kaldi { function SetOptionImpl (line 69) | static bool SetOptionImpl(const std::string &key, const T &value, function GetOptionImpl (line 130) | static bool GetOptionImpl(const std::string &key, T *value, FILE: runtime/engine/kaldi/util/simple-options.h function namespace (line 30) | namespace kaldi { FILE: runtime/engine/kaldi/util/stl-utils.h function namespace (line 35) | namespace kaldi { FILE: runtime/engine/kaldi/util/table-types.h function namespace (line 29) | namespace kaldi { FILE: runtime/engine/kaldi/util/text-utils.cc type kaldi (line 26) | namespace kaldi { function SplitStringToFloats (line 30) | bool SplitStringToFloats(const std::string &full, function SplitStringToVector (line 63) | void SplitStringToVector(const std::string &full, const char *delim, function JoinVectorToString (line 77) | void JoinVectorToString(const std::vector &vec_in, function Trim (line 92) | void Trim(std::string *str) { function IsToken (line 105) | bool IsToken(const std::string &token) { function SplitStringOnFirstSpace (line 120) | void SplitStringOnFirstSpace(const std::string &str, function IsLine (line 154) | bool IsLine(const std::string &line) { class NumberIstream (line 166) | class NumberIstream{ method NumberIstream (line 168) | explicit NumberIstream(std::istream &i) : in_(i) {} method NumberIstream (line 170) | NumberIstream & operator >> (T &x) { method RemainderIsOnlySpaces (line 180) | bool RemainderIsOnlySpaces() { method NumberIstream (line 195) | NumberIstream & ParseOnFail(T *x) { function ConvertStringToReal (line 238) | bool ConvertStringToReal(const std::string &str, function StringsApproxEqualInternal (line 286) | bool StringsApproxEqualInternal(const char *a, const char *b, function StringsApproxEqual (line 335) | bool StringsApproxEqual(const std::string &a, function ExpectOneOrTwoTokens (line 536) | void ExpectOneOrTwoTokens(std::istream &is, bool binary, function IsValidName (line 553) | bool IsValidName(const std::string &name) { function ReadConfigLines (line 564) | void ReadConfigLines(std::istream &is, function ParseConfigLines (line 579) | void ParseConfigLines(const std::vector &lines, FILE: runtime/engine/kaldi/util/text-utils.h function namespace (line 33) | namespace kaldi { FILE: runtime/engine/vad/frontend/wav.h function namespace (line 24) | namespace wav { FILE: runtime/engine/vad/interface/vad_interface.cc function PPSHandle_t (line 22) | PPSHandle_t PPSVadCreateInstance(const char* conf_path) { function PPSVadDestroyInstance (line 48) | int PPSVadDestroyInstance(PPSHandle_t instance) { function PPSVadChunkSizeSamples (line 57) | int PPSVadChunkSizeSamples(PPSHandle_t instance) { function PPSVadState_t (line 67) | PPSVadState_t PPSVadFeedForward(PPSHandle_t instance, function PPSVadReset (line 86) | int PPSVadReset(PPSHandle_t instance) { function PPSVadGetResult (line 96) | int PPSVadGetResult(PPSHandle_t instance, char* result, int max_len){ FILE: runtime/engine/vad/interface/vad_interface.h type PPSVadState_t (line 23) | typedef enum { FILE: runtime/engine/vad/interface/vad_interface_main.cc function main (line 24) | int main(int argc, char* argv[]) { FILE: runtime/engine/vad/nnet/vad.cc type ppspeech (line 23) | namespace ppspeech { FILE: runtime/engine/vad/nnet/vad.h function namespace (line 25) | namespace ppspeech { FILE: runtime/engine/vad/nnet/vad_nnet_main.cc function main (line 19) | int main(int argc, char* argv[]) { FILE: runtime/examples/android/VadJni/app/src/androidTest/java/com/baidu/paddlespeech/vadjni/ExampleInstrumentedTest.java class ExampleInstrumentedTest (line 18) | @RunWith(AndroidJUnit4.class) method useAppContext (line 20) | @Test FILE: runtime/examples/android/VadJni/app/src/main/cpp/native-lib.cpp function JNIEXPORT (line 7) | JNIEXPORT jstring JNICALL function JNIEXPORT (line 16) | JNIEXPORT jlong JNICALL function JNIEXPORT (line 30) | JNIEXPORT jint JNICALL function JNIEXPORT (line 37) | JNIEXPORT jint JNICALL function JNIEXPORT (line 43) | JNIEXPORT jint JNICALL function JNIEXPORT (line 50) | JNIEXPORT jint JNICALL FILE: runtime/examples/android/VadJni/app/src/main/cpp/vad_interface.h type PPSVadState_t (line 23) | typedef enum { FILE: runtime/examples/android/VadJni/app/src/main/java/com/baidu/paddlespeech/vadjni/MainActivity.java class MainActivity (line 11) | public class MainActivity extends AppCompatActivity { method onCreate (line 21) | @Override method stringFromJNI (line 39) | public native String stringFromJNI(); method createInstance (line 41) | public static native long createInstance(String config_path); method destroyInstance (line 43) | public static native int destroyInstance(long instance); method reset (line 45) | public static native int reset(long instance); method chunkSizeSamples (line 47) | public static native int chunkSizeSamples(long instance); method feedForward (line 49) | public static native int feedForward(long instance, float[] chunk); FILE: runtime/examples/audio_classification/android_demo/app/src/main/cpp/includes/panns_interface.h function namespace (line 17) | namespace ppspeech { FILE: runtime/examples/audio_classification/android_demo/app/src/main/cpp/native-lib.cpp function JNIEXPORT (line 30) | JNIEXPORT jboolean JNICALL Java_com_baidu_paddlespeech_cls_MainActivity_... function JNIEXPORT (line 42) | JNIEXPORT jboolean JNICALL Java_com_baidu_paddlespeech_cls_MainActivity_... function JNIEXPORT (line 51) | JNIEXPORT jstring JNICALL Java_com_baidu_paddlespeech_cls_MainActivity_n... function JNIEXPORT (line 62) | JNIEXPORT jboolean JNICALL Java_com_baidu_paddlespeech_cls_MainActivity_... FILE: runtime/examples/text_lm/local/mmseg.py class Word (line 5) | class Word: method __init__ (line 6) | def __init__(self, text='', freq=0): class Chunk (line 12) | class Chunk: method __init__ (line 13) | def __init__(self, w1, w2=None, w3=None): method totalWordLength (line 22) | def totalWordLength(self): method averageWordLength (line 29) | def averageWordLength(self): method standardDeviation (line 33) | def standardDeviation(self): method wordFrequency (line 42) | def wordFrequency(self): class ComplexCompare (line 49) | class ComplexCompare: method takeHightest (line 50) | def takeHightest(self, chunks, comparator): method mmFilter (line 62) | def mmFilter(self, chunks): method lawlFilter (line 68) | def lawlFilter(self, chunks): method svmlFilter (line 74) | def svmlFilter(self, chunks): method logFreqFilter (line 80) | def logFreqFilter(self, chunks): function loadDictChars (line 92) | def loadDictChars(filepath): function loadDictWords (line 104) | def loadDictWords(filepath): function getDictWord (line 116) | def getDictWord(word): function run (line 124) | def run(): class Analysis (line 130) | class Analysis: method __init__ (line 131) | def __init__(self, text): method __iter__ (line 148) | def __iter__(self): method getNextChar (line 155) | def getNextChar(self): method isChineseChar (line 159) | def isChineseChar(self, character): method isASCIIChar (line 163) | def isASCIIChar(self, ch): method getNextToken (line 172) | def getNextToken(self): method getASCIIWords (line 183) | def getASCIIWords(self): method getChineseWords (line 214) | def getChineseWords(self): method createChunks (line 239) | def createChunks(self): method getMatchChineseWords (line 270) | def getMatchChineseWords(self): function cuttest (line 309) | def cuttest(text): FILE: runtime/examples/vad/vad-android-demo/example/src/androidTest/java/com/konovalov/vad/example/ExampleInstrumentedTest.java class ExampleInstrumentedTest (line 18) | @RunWith(AndroidJUnit4.class) method useAppContext (line 20) | @Test FILE: runtime/examples/vad/vad-android-demo/example/src/main/java/com/konovalov/vad/example/recorder/VoiceRecorder.java class VoiceRecorder (line 23) | public class VoiceRecorder { method VoiceRecorder (line 37) | public VoiceRecorder(Listener callback, VoiceRecorderConfig config) { method updateConfig (line 43) | public void updateConfig(VoiceRecorderConfig config) { method start (line 47) | public void start() { method stop (line 63) | public void stop() { method createAudioRecord (line 83) | private AudioRecord createAudioRecord() { method getNumberOfChannels (line 107) | private int getNumberOfChannels() { class ProcessVoice (line 117) | private class ProcessVoice implements Runnable { method run (line 119) | @Override method detectSpeech (line 130) | private void detectSpeech(short[] buffer) { type Listener (line 145) | public interface Listener { method onSpeechDetected (line 146) | void onSpeechDetected(); method onNoiseDetected (line 148) | void onNoiseDetected(); FILE: runtime/examples/vad/vad-android-demo/example/src/main/java/com/konovalov/vad/example/recorder/VoiceRecorderConfig.java class VoiceRecorderConfig (line 8) | public class VoiceRecorderConfig { method VoiceRecorderConfig (line 15) | public VoiceRecorderConfig() { method VoiceRecorderConfig (line 18) | public VoiceRecorderConfig(Builder builder) { method getSampleRate (line 26) | public SampleRate getSampleRate() { method getMode (line 30) | public Mode getMode() { method getFrameSize (line 34) | public FrameSize getFrameSize() { method getVoiceDurationMillis (line 38) | public int getVoiceDurationMillis() { method getSilenceDurationMillis (line 42) | public int getSilenceDurationMillis() { method setSampleRate (line 46) | public void setSampleRate(SampleRate sampleRate) { method setMode (line 50) | public void setMode(Mode mode) { method setFrameSize (line 54) | public void setFrameSize(FrameSize frameSize) { method setVoiceDurationMillis (line 58) | public void setVoiceDurationMillis(int voiceDurationMillis) { method setSilenceDurationMillis (line 62) | public void setSilenceDurationMillis(int silenceDurationMillis) { method newBuilder (line 66) | public static Builder newBuilder() { class Builder (line 70) | public static class Builder { method Builder (line 77) | private Builder() { method setSampleRate (line 80) | public Builder setSampleRate(SampleRate sampleRate) { method setMode (line 85) | public Builder setMode(Mode mode) { method setFrameSize (line 90) | public Builder setFrameSize(FrameSize frameSize) { method setVoiceDurationMillis (line 95) | public Builder setVoiceDurationMillis(int voiceDurationMillis) { method setSilenceDurationMillis (line 100) | public Builder setSilenceDurationMillis(int silenceDurationMillis) { method build (line 105) | public VoiceRecorderConfig build() { type SampleRate (line 110) | public enum SampleRate { method getValue (line 115) | public int getValue() { method SampleRate (line 119) | SampleRate(int sampleRate) { type Mode (line 124) | public enum Mode { method getValue (line 132) | public int getValue() { method Mode (line 136) | Mode(int mode) { type FrameSize (line 141) | public enum FrameSize { method getValue (line 146) | public int getValue() { method FrameSize (line 150) | FrameSize(int frameSize) {