You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Here"s an example of basic usage with Multiple Import: with Default Import:
// Default import will return TextToSpeech ComponentimportTextToSpeechfrom"fe-pilot/TextToSpeech";<TextToSpeech/>// Used as a Component
2. Here"s an example of basic usage with Multiple Import: with Multiple Import:
import{TextToSpeech,textToSpeech}from"fe-pilot/TextToSpeech";// Used as a Component<TextToSpeechtext={`Fe-pilot library offers component like scanner, voice search, autofill otp, phonebook, share and many more for a small/medium/large size web based applications`}/>// Used as a ServicetextToSpeech({
text={`Fe-pilot library offers component like scanner, voice search, autofill otp, phonebook, share and many more for a small/medium/large size web based applications`}});
3. Here"s an example of a advanced usage:
import{TextToSpeech,TextToSpeechStart,TextToSpeechStop}from"fe-pilot/TextToSpeech";constsuccessCb=(response)=>{console.log("success response:",response);}constfailureCb=(response)=>{console.log("failure response:",response);}return(<TextToSpeechtext={`Fe-pilot library offers component like scanner, voice search, autofill otp, phonebook, share and many more for a small/medium/large size web based applications`}successCb={successCb}failureCb={failureCb}><TextToSpeechStart>
Start Icon/Text/Element
</TextToSpeechStart><TextToSpeechStop>
Stop Icon/Text/Element
</TextToSpeechStop></TextToSpeech>);
Props
Props
Type
Description
Response
successCb
Function
It will be called on success
{
data: "Can be array/object/string/number",
msgType: "SUCCESSFUL",
msg: "A success msg",
status: "SUCCESS"
}