#How do I know if a voice that I added from the voice library is in its notice period?

1 messages · Page 1 of 1 (latest)

faint emberBOT
#
AI-generated Answer for gregarous.

To check if a voice you added from the Voice Library is in its notice period, go to Voices > Personal, click on "View" for the specific voice, and then select "Sharing" to view the details. This will show you when the notice period started and provide relevant information about its status.

Keep in mind that during the notice period, the voice remains accessible to you but may no longer be visible in the Voice Library.

flat rune
#

where do I get this in the data returned from the api?

faint emberBOT
#
AI-generated Answer for gregarous.

To determine if a voice is in its notice period using the API, you can check the sharing object in the data returned by the Get Voice endpoint. Specifically, look for the disable_at_unix field within the sharing object. This field provides the timestamp (in Unix format) indicating when the voice will be disabled. If this field is present and has a future timestamp, the voice is currently in its notice period.

Here’s an example of the relevant part of the response:

"sharing": {
    "disable_at_unix": 1699999999, // Timestamp for when the voice will be disabled
    "status": "enabled",
    ...
}

If disable_at_unix is not present, the voice may not have a notice period set.

flat rune
#

Yes! Thank you! Good job ai!

faint emberBOT
#
AI-generated Answer for gregarous.

The notice period for a voice is not explicitly mentioned in the API data based on the provided content. However, if a voice is in its notice period, you may need to rely on the visual indicators in the ElevenLabs interface. For example, when a notice period is active, a clock icon is displayed, which you can hover over for confirmation.

If you're working with the API, you can fetch all voices in your library using the /v1/voices endpoint. Here's a sample Python code snippet to retrieve voice data:

import requests
import json

XI_API_KEY = "<xi-api-key>"
url = "https://api.elevenlabs.io/v1/voices"

headers = {
    "Accept": "application/json",
    "xi-api-key": XI_API_KEY,
    "Content-Type": "application/json"
}

response = requests.get(url, headers=headers)
data = response.json()

for voice in data['voices']:
    print(f"{voice['name']}; {voice['voice_id']}")

This will return the list of voices, but you may need to manually check the ElevenLabs interface for notice period details.

flat rune
#

When a voice gets passed the disable_at_unix date, does it still show up in the /v1/voices endpoint?