question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Java init fails on Linux mint

See original GitHub issue

Im trying to create an home assistant with a laptop x86_64 running Raspberry Os. Of I try to run my code i get this Error: ai.picovoice.porcupine.PorcupineIOException: Initialization failed. at ai.picovoice.porcupine.Porcupine.init(Native Method) at ai.picovoice.porcupine.Porcupine.<init>(Porcupine.java:61) at ai.picovoice.porcupine.Porcupine$Builder.build(Porcupine.java:262) at de.VoiceRecognition.ball.WakeWordDetection.main(WakeWordDetection.java:79)

this is my code:

`

        ByteArrayOutputStream outputStream = null;

    
        String Keypath =   "voiceTickets/de_linux_v2_1_0.ppn";
        String ModelPath = "voiceTickets/porcupine_params_de.pv";
        
        // get audio capture device
        
        
        try {
            micDataLine = mic.getTargetDataLine();
            micDataLine.open(format);
        } catch (LineUnavailableException e) {
            System.err.println("Failed to get a valid capture device. Use --show_audio_devices to " +
                    "show available capture devices and their indices");
            System.exit(1);
            return;
        }
        

            Porcupine handle = new Porcupine.Builder()
                                .setAccessKey(accessKey)
                                .setKeywordPath(Keypath)
                                .setModelPath(ModelPath)
                                .build();`

Thank You

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:35 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
Blu3Lif3commented, Mar 25, 2022

I’ve run it via Ubuntu Standard with my Desktop PC!

1reaction
Blu3Lif3commented, Mar 22, 2022

Yes of course I’ve replaced it, I just didnt want others to know my key so i censored it. I have a constant internet connection 400mb. What am I supposed to do next?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Initialization Error - Linux Mint Forums
Hello, I'm getting this error when I try to verify/test Java on https://www.java.com/en/download/installed.jsp from a fresh Linux Mint 17.2 ...
Read more >
Fatal: Inialization Error: Could not initialize application
I found it simple to install on Mint 20.1. First download. Code: Select all. Linux with 64-bit JRE. from here: https://omegat.org ...
Read more >
icedtea java error in new Mint 17 cinnamon release (SOLVED ...
Mint 16 java worked just fine and I have been using it with no problems. ... net.sourceforge.jnlp.LaunchException: Fatal: Initialization Error: Could not ...
Read more >
can't start java app from udev rule - Linux Mint Forums
i setup udev rule for start java application when SD card inserted. but there is ... root: Error occurred during initialization of VM...
Read more >
<SOLVED> Java exception libjawt.so version ...
I'm trying to run BuildGDX engine games on my linux mint ... Lwjgl.LwjglGraphics.init(LwjglGraphics.java:92) at ru.m210projects.Build.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found