Giter Club home page Giter Club logo

tts-rest-wrapper's People

Contributors

marco-catapano-at-prima avatar mrschyzo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tts-rest-wrapper's Issues

Add another failover option for TTS

Start meddling here

An example for reference:

curl 'https://cache-a.oddcast.com/tts/gen.php?EID=2&LID=7&VID=7&TXT=a%20seguito%20di%20un%20cambio%20del%20YML%20della%20CI%20di%20Drone%2C%20potrebbe%20essere%20necessario%20un%20rebase%20dei%20branch%20ancora%20attivi%20se%20la%20CI%20vi%20schianta%20in%20questi%20branch&IS_UTF8=1&ACC=3314795&API=2292376&CB=vw_mc.vwCallback&HTTP_ERR=1&vwApiVersion=2&d=f88dda1b76a1b76931320d9f8810330ee9f6df88dd' \
  -H 'authority: cache-a.oddcast.com' \
  -H 'sec-ch-ua: " Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"' \
  -H 'sec-ch-ua-mobile: ?0' \
  -H 'user-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36' \
  -H 'sec-ch-ua-platform: "Linux"' \
  -H 'accept: */*' \
  -H 'sec-fetch-site: cross-site' \
  -H 'sec-fetch-mode: no-cors' \
  -H 'sec-fetch-dest: audio' \
  -H 'referer: https://www.vocalware.com/' \
  -H 'accept-language: en-US,en;q=0.9,it;q=0.8' \
  -H 'range: bytes=0-' \
  --compressed

Unable to run native after adding custom config converters

After adding custom config converters, native Quarkus fails to start.
It looks like the compiled version of the Converter does not have an initializer in its code (see SmallRye Config).
Maybe Quarkus does not support converters?

I can always use:

  • a workaround that maps a "raw" (Long + String) config interface into a "corrected" data class (Path + PosLong) that can be initialized by a @Producer method and @Injected into the StorageLazyCache.
  • Java for these conversions (yuck!)
2021-10-09 01:02:10,082 ERROR [io.qua.run.Application] (main) Failed to start application (with profile prod): java.lang.NoSuchMethodError: it.mrschyzo.configuration.PositiveLongCoercionConverter.<init>()
        at io.smallrye.config.ConfigMappingContext.lambda$getConverterInstance$7(ConfigMappingContext.java:185)
        at java.util.Map.computeIfAbsent(Map.java:1003)
        at io.smallrye.config.ConfigMappingContext.getConverterInstance(ConfigMappingContext.java:169)
        at io.smallrye.config.ConfigMappingContext.getConverter(ConfigMappingContext.java:104)
        at io.smallrye.config.ConfigMappingContext.lambda$getValueConverter$4(ConfigMappingContext.java:92)
        at java.util.HashMap.computeIfAbsent(HashMap.java:1133)
        at io.smallrye.config.ConfigMappingContext.getValueConverter(ConfigMappingContext.java:89)
        at it.mrschyzo.configuration.StorageConfiguration1648742051Impl.<init>(Unknown Source)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:490)
        at io.smallrye.config.ConfigMappingLoader.configMappingObject(ConfigMappingLoader.java:59)
        at io.smallrye.config.ConfigMappingContext.constructGroup(ConfigMappingContext.java:80)
        at io.smallrye.config.ConfigMappingContext.constructRoot(ConfigMappingContext.java:76)
        at io.smallrye.config.ConfigMappingProvider.mapConfiguration(ConfigMappingProvider.java:811)
        at io.smallrye.config.ConfigMappingProvider.mapConfiguration(ConfigMappingProvider.java:794)
        at io.smallrye.config.ConfigMappings.mapConfiguration(ConfigMappings.java:54)
        at io.smallrye.config.ConfigMappings.registerConfigMappings(ConfigMappings.java:36)
        at io.quarkus.arc.runtime.ConfigRecorder.registerConfigMappings(ConfigRecorder.java:81)
        at io.quarkus.deployment.steps.ConfigBuildStep$registerConfigClasses-2116437784.deploy_0(ConfigBuildStep$registerConfigClasses-2116437784.zig:132)
        at io.quarkus.deployment.steps.ConfigBuildStep$registerConfigClasses-2116437784.deploy(ConfigBuildStep$registerConfigClasses-2116437784.zig:40)
        at io.quarkus.runner.ApplicationImpl.doStart(ApplicationImpl.zig:579)
        at io.quarkus.runtime.Application.start(Application.java:101)
        at io.quarkus.runtime.ApplicationLifecycleManager.run(ApplicationLifecycleManager.java:101)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:66)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:42)
        at io.quarkus.runtime.Quarkus.run(Quarkus.java:119)
        at io.quarkus.runner.GeneratedMain.main(GeneratedMain.zig:29)

Better error handling

I use Result<O, E> somewhere in the codebase, but without any coherence. It would be better if I use it extensively as it forces me to handle errors. The worst part is making it work with Uni<T> without ruining the code readability.

Another thing: I do not map any exception to HTTP responses, only 500 errors, and it's ugly.

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.