Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Jul 14, 2022
1 parent 7d90e3c commit 8bb6713
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions docs/source/api/audio.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ __________________
~speech_recognition.data.SpeechRecognitionData
~speech_recognition.model.SpeechRecognition

speech_recognition.input.SpeechRecognitionInputBase
speech_recognition.input.SpeechRecognitionCSVInput
speech_recognition.input.SpeechRecognitionJSONInput
speech_recognition.input.BaseSpeechRecognition
speech_recognition.input.SpeechRecognitionFileInput
speech_recognition.input.SpeechRecognitionPathsInput
speech_recognition.input.SpeechRecognitionDatasetInput
speech_recognition.input.SpeechRecognitionDeserializer
Expand Down
2 changes: 1 addition & 1 deletion flash/audio/speech_recognition/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def load_data(self, dataset: Dataset, sampling_rate: int = 16000) -> Sequence[Ma
def load_sample(self, sample: Any) -> Any:
sample = to_sample(sample)
if isinstance(sample[DataKeys.INPUT], (str, Path)):
sample = super().load_sample(sample, self.sampling_rate)
sample = super().load_sample(sample)
return sample


Expand Down

0 comments on commit 8bb6713

Please sign in to comment.