#Can literally anyone explain how to get
1 messages · Page 1 of 1 (latest)
One option you have, is to build the transcript yourself live client-side:
Example using our @11labs/react SDK:
conversation.startSession({
signedUrl,
onMessage: ({ message, source }) => {
console.log("message", message, source);
},
Alternatively you can call this endpoint once the conversation is complete: https://elevenlabs.io/docs/conversational-ai/api-reference/get-conversational-ai-conversations
Note there is a lag between this ^ being available and the conversation ending.
Does this solve your issue? or would you ideally liketo receive this transcript another way?
Hy Louis! I tried implementing the first option, but I'm only getting transcript of what the model is saying, not the user.
Am I doing this wrong or is that how it's mean to function live?
Thank you! Let me check this tomorrow, it should be the logs from both sources.
Hey @solid widget I have just checked and we send both message types in the onMessage hook - are you not receiving user messages?
const conversation = useConversation({
overrides: {
agent: {
language: language ?? ("en" as any),
firstMessage:
LANGUAGES.find(l => l.code === language)?.firstSentence ??
LANGUAGES[0].firstSentence,
},
},
onConnect: ({ conversationId }) => {
setConversationId(conversationId);
startRecordingVideo();
},
onMessage: message => {
console.log("message:", { message });
},
clientTools: {
triggerName: async (parameters: { name: string }) => {
setName(parameters.name);
setIsCardOpen(true);
},
triggerAddItemToWishlist: async (parameters: {
itemName: string;
itemKey: string;
}) => {
setWishlist(prevWishlist => [
...prevWishlist,
{ name: parameters.itemName, key: parameters.itemKey },
]);
},
triggerRemoveItemFromWishlist: async (parameters: {
itemKey: string;
}) => {
setWishlist(prevWishlist =>
prevWishlist.filter(item => item.key !== parameters.itemKey)
);
},
},
});
Does this approach work in python @winter ether ?
Hey louis. I'm looking to display agent transcripts in my swift UI for IOS. I have the agent working with voice, but would like to diplay subtitles as text to make it easy to read and listen to responses. I've converted this to swift and I have the build running, but nothing is appearing.