Code Monkey home page Code Monkey logo

Comments (7)

Dustinhoefer avatar Dustinhoefer commented on June 14, 2024 1

Works like a charm, thank you so much!

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on June 14, 2024

I'll take a look later today.. If it's not working correctly, they may have paginated the history list via the API. I will have to check it out.

from elevenlabs-api.

Dustinhoefer avatar Dustinhoefer commented on June 14, 2024

Apparently, History.getHistoryItems only returns the last 100 items.
I just implemented pagination, could you give me permission to create a branch and push to it?
Or how does that work? :)

Also: getLastHistoryItemID actually gives the ID of the last item from the current pagination, to use as the offset for future requests.

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on June 14, 2024

Yup, all good. I just released an update of the library (2.7.8) which includes pagination + new builders for S2S / T2S.. Going forward, you can make a pull request.. I think if you clone the repo locally, you can make PR to this repo and I can review / approve.

Check this: https://stackoverflow.com/questions/14906187/how-to-submit-a-pull-request-from-a-cloned-repo

Also, let me know if you're able to see 2.7.8 and if it works for your use case.

New pagination docs:

    History history = History.get(); // the latest history object
    Optional<History> hist = Optional.of(history);
    List<HistoryItem> items = new ArrayList();
    do {
        items.addAll(hist.get().getHistoryItems());
        hist = hist.get().next();
    } while(hist.isPresent() && hist.hasMore());

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on June 14, 2024

Having issues actually deploying to Maven Central, they're having some serious delays. Will let you know when 2.7.8 is available

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on June 14, 2024

@Dustinhoefer Ok, 2.7.8 should be released and ready for use. Not sure what was up at Maven Central yesterday, but I could not get a version to deploy.

from elevenlabs-api.

Andrewcpu avatar Andrewcpu commented on June 14, 2024

No problem, glad you're enjoying! Have fun

from elevenlabs-api.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.