human_avatar 0.0.5
human_avatar: ^0.0.5 copied to clipboard
A Flutter package for both ios and android creating animation text to speech.
human_avatar #
A Flutter package for create video by using human avatar.
Installation #
To use this plugin, add human_avatar as a dependency in your pubspec.yaml file.
human_avatar: any
Getting Started #
To get started with Human_vatar for Flutter first you will have to create account on Elai. and genrate you secret_key, please see the documentation.
Create Avatar #
await _humanAvatarPlugin.createAvatar(
secretKey:secretKey,
gender: "male",
photoName: photo.name,
photoData: _base64String);
create Video #
await _humanAvatarPlugin.createVideoAvatar(
secretKey:secretKey,
imageUrl: data?.frontendConfig?.canvas ?? '',
speechText: "this is my first text video",
gender: "male",
avatarName: "",
avatarId: data?.avatarDataId ?? '',
onRender:(value){
print(value.url);
createVideoAvatarData=value;
}
);