तीन शॉर्टकोड उपलब्ध हैं. अधिकतर उपयोगकर्ताओं को केवल [mementor-tts] की जरूरत होती है. बाकी दो advanced cases के लिए हैं.
[mementor-tts]
मुख्य audio shortcode. उस text को wrap करता है जिसे narrate किया जाना है और wrapped text के ऊपर एक player दिखाता है.
बुनियादी उपयोग
[mementor-tts]आपका text यहाँ जाता है.[/mementor-tts]
Attributes के साथ
[mementor-tts voice="IKne3meq5aSn9XLyUdCD" model="eleven_flash_v2_5" label="सुनें" autoplay="no" download="yes" loop="no" time_display="yes" speed_control="yes" volume_control="yes" information="no"]
आपका text यहाँ जाता है.
[/mementor-tts]
Attributes
| Attribute | Values | Default | Description |
|---|---|---|---|
voice |
Voice ID | site default | इस shortcode के लिए voice बदलें |
model |
eleven_flash_v2_5, आदि |
site default | ElevenLabs model बदलें |
label |
कोई भी text | खाली | Player के ऊपर दिखता है |
autoplay |
yes / no |
no |
Page load होने पर play शुरू करें |
download |
yes / no |
site default | Download button दिखाएं |
loop |
yes / no |
no |
Audio को loop करें |
time_display |
yes / no |
site default | समय और duration दिखाएं |
speed_control |
yes / no |
site default | Speed selector दिखाएं |
volume_control |
yes / no |
site default | Volume slider दिखाएं |
information |
yes / no |
site default | Information icon दिखाएं |
उदाहरण
सरल audio block:
[mementor-tts]नमस्ते, यह एक test है.[/mementor-tts]
Custom label और autoplay:
[mementor-tts label="स्वागत संदेश" autoplay="yes"]
हमारी site पर आपका स्वागत है.
[/mementor-tts]
किसी विशेष section के लिए अलग voice:
[mementor-tts voice="EXAVITQu4vr4xnSDxMaL"]
यह paragraph एक अलग voice का उपयोग करता है.
[/mementor-tts]
[tts_player]
किसी मौजूदा post की generated audio के लिए audio player render करता है. इसका उपयोग तब करें जब आप shortcode की मदद से player को किसी non-default location पर रखना चाहते हों.
बुनियादी उपयोग
[tts_player]
किसी post या page के अंदर रखने पर यह उस post की audio को reference करता है. Template में (do_shortcode() के जरिए) रखने पर post ID स्पष्ट रूप से दें.
Attributes
| Attribute | Values | Description |
|---|---|---|
id |
post ID | किसी specific post की audio reference करें |
lang |
lang code | Multilingual sites के लिए कोई भाषा चुनें |
उदाहरण
Default (current post की audio उपयोग करता है):
[tts_player]
Specific post:
[tts_player id="123"]
Specific language (WPML/Weglot):
[tts_player id="123" lang="es"]
[mementor_raw]
Raw text को TTSWP की standard cleanup (CSS selector stripping नहीं, shortcode escaping नहीं) के बिना सीधे ElevenLabs को भेजता है. केवल advanced उपयोग के लिए.
उपयोग
[mementor_raw]
आपका raw text जो सभी TTSWP filters को bypass करता है.
[/mementor_raw]
जब synthesis में जाने वाले content पर सटीक नियंत्रण चाहिए तो [mementor_raw] को [mementor-tts] block के अंदर उपयोग करें:
[mementor-tts]
Intro sentence.
[mementor_raw]<phoneme alphabet="ipa" ph="təˈmeɪtoʊ">tomato</phoneme>[/mementor_raw]
बाकी text.
[/mementor-tts]
Theme templates में
PHP template से कोई भी shortcode उपयोग करने के लिए:
<?php echo do_shortcode('[tts_player id="' . get_the_ID() . '"]'); ?>