Skip to content

Commit 3135467

Browse files
committed
Fix broken docs links: ResourceSource and TextToSpeechModelSources are type aliases
TypeDoc emits `export type` declarations under `06-api-reference/type-aliases/`, not `06-api-reference/interfaces/`. The links in useTextToSpeech.md pointed at the interfaces/ paths, which never get generated for these names, breaking the Docusaurus build (`onBrokenLinks: 'throw'`).
1 parent a3c38d3 commit 3135467

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/docs/03-hooks/01-natural-language-processing/useTextToSpeech.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ const handleSpeech = async (text: string) => {
6161

6262
`useTextToSpeech` takes [`TextToSpeechModelConfig`](../../06-api-reference/interfaces/TextToSpeechModelConfig.md) that consists of:
6363

64-
- `model` of type [`TextToSpeechModelSources`](../../06-api-reference/interfaces/TextToSpeechModelSources.md) containing the [`durationPredictorSource`](../../06-api-reference/interfaces/TextToSpeechModelSources.md#durationpredictorsource), [`synthesizerSource`](../../06-api-reference/interfaces/TextToSpeechModelSources.md#synthesizersource), and [`modelName`](../../06-api-reference/interfaces/TextToSpeechModelSources.md#modelname).
65-
- [`voiceSource`](../../06-api-reference/interfaces/TextToSpeechModelConfig.md#voicesource) of type [`ResourceSource`](../../06-api-reference/interfaces/ResourceSource.md) - configuration of specific voice used in TTS.
64+
- `model` of type [`TextToSpeechModelSources`](../../06-api-reference/type-aliases/TextToSpeechModelSources.md) containing the [`durationPredictorSource`](../../06-api-reference/type-aliases/TextToSpeechModelSources.md#durationpredictorsource), [`synthesizerSource`](../../06-api-reference/type-aliases/TextToSpeechModelSources.md#synthesizersource), and [`modelName`](../../06-api-reference/type-aliases/TextToSpeechModelSources.md#modelname).
65+
- [`voiceSource`](../../06-api-reference/interfaces/TextToSpeechModelConfig.md#voicesource) of type [`ResourceSource`](../../06-api-reference/type-aliases/ResourceSource.md) - configuration of specific voice used in TTS.
6666
- [`phonemizerConfig`](../../06-api-reference/interfaces/TextToSpeechModelConfig.md#phonemizerconfig) of type [`TextToSpeechPhonemizerConfig`](../../06-api-reference/interfaces/TextToSpeechPhonemizerConfig.md) - configuration of the phonemizer.
6767

6868
`useTextToSpeech`'s second optional argument is an object with:

0 commit comments

Comments
 (0)