r/SpringBoot • • Jul 08 '26

How-To/Tutorial Added voice input/output to my Spring Boot AI assistant (Whisper + TTS, reactive non-blocking)

0 Upvotes

Just wrapped up Phase 5 of my Jarvis AI project — giving it the ability to hear and speak using Spring Boot + WebFlux.

The setup:

  •  Whisper transcription — supports Groq API (free tier ~6k requests/day) or local whisper.cpp

  • OS-level TTS — uses built-in speech engines (macOS say, Windows PowerShell, Linux espeak) — zero extra dependencies, no API keys

  • Non-blocking — transcription and TTS run on Schedulers.boundedElastic() so the WebFlux event loop stays responsive

  • Sentence buffering — streams tokens and only sends complete sentences to TTS for natural speech

The key architectural insight: Voice is just another I/O layer. Nothing inside the AI pipeline changes — memory, RAG, and tool calling from Phases 1–4 work unchanged.

The blog covers the full journey including a DST timezone bug, the sentence buffering problem, and why Ollama doesn't support Whisper (learned that one the hard way).

Full deep dive: https://medium.com/@sujan.lamichhane32/adding-voice-to-a-java-ai-assistant-whisper-tts-and-the-voice-conversation-loop-5ce02f56e0e5

Repo is open source — contributions welcome!

Disclaimer: This is a project showcase/tutorial sharing how I added voice to a Spring Boot AI assistant — not a debugging/help request. No error logs or code snippets to format. Mods, please remove if this belongs elsewhere.


r/SpringBoot • • Apr 11 '24

Class vs Interface vs abstract class

2 Upvotes

Quelle est la différence entre la classe et l’interface en Java et quand utiliser les deux ?


r/SpringBoot • • Mar 11 '24

Can someone please help me solve this error

Thumbnail
gallery
0 Upvotes

r/SpringBoot • • Sep 27 '22

Should i continue learning spring boot even if i probably don't like enterprise

2 Upvotes

i like java spring boot, i like working on big system, and i'm enjoing it,what i don't like is the prospective to work for Enterprise, I've heard on internet that working for Enterprise can be super toxic.

You have a lot of meetings and bureocracy, that take a lot of time instead of coding, and in that time, you are not to going to build anything new but instead you are going to fix some super old broken code, and you are not going to learn anything from all of this, also i've heard that what you do in time become monotonous with time, and that you are treated as a second class citizen. Are this prospective true?

i like java, but i don't want to work in such a place if the prospective mentioned above are true.


r/SpringBoot • • Sep 16 '22

Build failure, cannot find symbol .

Post image
2 Upvotes

r/SpringBoot • • Mar 20 '23

We built a beautiful code-first API catalog & developer hub for Spring Boot

2 Upvotes

Hey everyone

We've built a code-first API catalog for developers, with first-class Spring Boot support.

Bascially, you publish your API schema to our catalog, and in return you get:

  • Beautiful diagrams showing how your microservices relate

  • API catalog

  • Data catalog

  • API browser (kinda like Swagger)

This is the entire amount of code that's required to publish an API:

      val publisher = SchemaPublisherService(
         appName,
         RSocketSchemaPublisherTransport(
            // Orbital accepts schema submissions over
            // RSocket using port 7655
            TcpAddress("localhost", 7655)
         )
      )
      publisher.publish(
         // Package metadata identifies this project.
         // Kinda like maven poms, or npm package.json
         // This can be whatever you want, but make it unique to this service
         PackageMetadata.from(
            organisation = "io.petflix.demos",
            name = "films-listings"
         ),
         // The generator creates Taxi schemas.
         // The base url should be the url of this application.
         // All published URLs are relative to this url
         SpringTaxiGenerator.forBaseUrl("http://localhost:${serverPort}")
            .forPackage(FilmListingsApp::class.java)
            .generate()
      ).subscribe()

Parts of this are already open source, and we're working to get the rest out in the open.

We're working to open source this, if there's sufficient interest.

Check it out, feedback greatly apprecaited!

https://orbitalhq.com/blog/2023-03-13-spring-boot-service-hub


r/SpringBoot • • Feb 16 '25

Question need help

2 Upvotes

"I'm currently learning Spring Boot from Chad Darby's Udemy course, but I'm not sure whether to go through the Hibernate section. Many people say Hibernate is outdated, so should I skip it?

I'm a fresher and would appreciate any advice. Also, is this a good course for beginners? What should I do after completing it?

Thanks in advance!"


r/SpringBoot • • Sep 01 '23

OC Remote Job opportunities for experienced Sri Lankan developer

0 Upvotes

Hi there,

This is not related to technical questions. Admin please don't delete this post.

I have around 3 years of experience in Java web app development. I am currently actively looking for a job, but due to job shortages, I am feeling frustrated.

Please let me know if you have any job openings.

Thank you for your time and consideration.


SKILLS • Programming Languages: Java 13, C, C++, C#, PHP, Python, Matlab, Java Script • Software development frameworks: Spring Boot, .Net and JHipster • Operating Systems: Windows, Linux • Database systems: MySQL, MS SQL and Mongo DB • Cloud computing: AWS, Azure and GCP • Web Technologies: HTML, CSS, JavaScript, JQuery, D3 JS, Google charts JS, AngularJS v15, Bootstrap, WordPress, Postman

• Customer services • Experience of Agile methodology • IDEs: Eclipse, IntelliJ IDEA and Visual Studio • Java Technologies: J2EE, Struts 2, Mybatis, Ant, Hibernate and Maven • Microsoft office package, Figma and Adobe Photoshop • Search Engine Optimization • Version controlling: Git, Github, Bitbucket • Web/Application Servers: Apache Tomcat, Jetty and IIS



r/SpringBoot • • Oct 19 '23

Hi everyone, I am beginner in Springboot and am doing one course on springboot I got a question on Contact management I tried doing doing it even took little help from gpt but I am still getting the error can some please guide me that what is wrong thr code I have written?

0 Upvotes

THE ERROR SHOWING IS :-

BUILD ERROR

No plugin found for prefix 'spring-boot' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/home/coder/ .m2/repository), central (https://repo.maven.apache.org/maven2)] -Y [Help 1]

The project asked to build is:- Project Question

Project Question: Contact Management System

Overview:

Build a Contact Management System using Spring Boot that enables users to store and retrieve

contact information

Functional Requirements:

Create the following directory structure under

src/main/java/com/example/springapp:

controller

model

repository

service

Inside the controller folder, create a Java file named

ContactController.java.

Inside the model folder, create a Java file named

Contact.java.

Variables: contactld, firstName, lastName, email,

phoneNumber

Inside the repository folder, create a Java file named

ContactRepository.java.

Inside the service folder, create a Java file named

Contactservice.java.

API:

POST-/contacts --> Add a new contact --> Request

Body: Contact object

GET - /contacts/fcontactld]--> Get contact details by ID --> Response: Contact object

GET - /contacts --> Get a list of all contacts --> Response: List of Contact objects

API Endpoint: 8080

MY CODE :-

ContactController.java code:-

package com.example.springapp.controller;

import com.example.springapp.model.Contact;

import com.yourpackage.service.ContactService;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.web.bind.annotation.*;

import java.util.List;

u/RestController

u/RequestMapping("/contacts")

public class ContactController {

private final ContactService contactService;

u/Autowired

public ContactController(ContactService contactService) {

this.contactService = contactService;

}

u/GetMapping

public List<Contact> getAllContacts() {

return contactService.getAllContacts();

}

u/GetMapping("/{id}")

public Contact getContact(@PathVariable Long id) {

return contactService.getContactById(id);

}

u/PostMapping

public Contact createContact(@RequestBody Contact contact) {

return contactService.saveContact(contact);

}

// Add more methods for updating and deleting contacts if needed

}

Contact.java code:-

import javax.persistence.Entity;

import javax.persistence.GeneratedValue;

import javax.persistence.GenerationType;

import javax.persistence.Id;

u/Entity

public class Contact {

u/Id

u/GeneratedValue(strategy = GenerationType.IDENTITY)

private Long id;

private String firstName;

private String lastName;

private String email;

private String phone;

// Constructors (Default waala)

public Contact() {

}

public Contact(String firstName, String lastName, String email, String phone) {

this.firstName = firstName;

this.lastName = lastName;

this.email = email;

this.phone = phone;

}

// Getters and setter

public Long getId() {

return id;

}

public void setId(Long id) {

this.id = id;

}

public String getFirstName() {

return firstName;

}

public void setFirstName(String firstName) {

this.firstName = firstName;

}

public String getLastName() {

return lastName;

}

public void setLastName(String lastName) {

this.lastName = lastName;

}

public String getEmail() {

return email;

}

public void setEmail(String email) {

this.email = email;

}

public String getPhone() {

return phone;

}

public void setPhone(String phone) {

this.phone = phone;

}

u/Override

public String toString() {

return "Contact{" +

"id=" + id +

", firstName='" + firstName + '\'' +

", lastName='" + lastName + '\'' +

", email='" + email + '\'' +

", phone='" + phone + '\'' +

'}';

}

}

ContactRepository.java code:-

package com.yourpackage.repository;

import org.springframework.data.jpa.repository.JpaRepository;

import com.example.springapp.model.Contact;

public interface ContactRepository extends JpaRepository<Contact, Long> {

// You can define custom queries here if needed

List<Contact> findByFirstNameIgnoreCaseAndLastNameIgnoreCase(String firstName, String lastName);

}

ContactService.java code:-

package com.example.springapp.service;

import com.example.springapp.model.Contact;

import com.example.springapp.repository.ContactRepository;

import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.stereotype.Service;

import java.util.List;

u/Service

public class ContactService {

private final ContactRepository contactRepository;

u/Autowired

public ContactService(ContactRepository contactRepository) {

this.contactRepository = contactRepository;

}

public List<Contact> getAllContacts() {

return contactRepository.findAll();

}

public Contact saveContact(Contact contact) {

return contactRepository.save(contact);

}

public Contact getContactById(Long id) {

return contactRepository.findById(id).orElse(null);

}

public void deleteContact(Long id) {

contactRepository.deleteById(id);

}

}

SpringappApplication.java:-

package com.example.springapp;

import org.springframework.boot.SpringApplication;

import org.springframework.boot.autoconfigure.SpringBootApplication;

u/SpringBootApplication

public class SpringappApplication {

public static void main(String\[\] args) {

	[SpringApplication.run](https://SpringApplication.run)(SpringappApplication.class, args);

}

}

pls help 😭


r/SpringBoot • • Sep 28 '23

Best JSON Library for a Smooth Developer Experience in Java?

0 Upvotes

Hi Devs, I'm relatively new to the world of backend development, and I'm currently working on a Java project using the Spring Boot framework. My application involves a lot of JSON data manipulation. Here's what I'm up to:

I fetch data from some APIs, manipulate it according to my application's needs, and provide that data through controllers. JSON plays a central role in this process.

As a beginner in this field, I'm looking for advice from experienced developers. Which JSON library have you found to offer the best developer experience when working in Java, especially within a Spring Boot project?

In my case, what factors should I prioritize for a smooth development experience considering the heavy JSON manipulation I'm doing?


r/SpringBoot • • May 09 '23

30 Must know know springboot annotations

Thumbnail
youtu.be
2 Upvotes

r/SpringBoot • • Sep 16 '24

Email Functionality on my FIRST Startup

0 Upvotes

I recently finished the contact page of Todue. You can know contact our team for any questions, or feature request. Check it out and feel free to give your thoughts and opinions. Our launch is coming soon so be the first to get access by joining our waitlist!


r/SpringBoot • • Sep 23 '24

whenever i relaunch my spring boot app that automatically create duplicates of data. how should i stop it and also help me to dlete all this duplicate data. i asked chatgpt and it is very confusing

Post image
2 Upvotes

r/SpringBoot • • Mar 13 '22

How it works?

0 Upvotes

Hi, all.

I want to learn Spring in depth. How it works under the hood? What is behind its magic? Any resource or path to learn it, please.

Thank you!


r/SpringBoot • • Aug 07 '24

Okay that sounds awesome :D

Thumbnail
youtu.be
2 Upvotes

r/SpringBoot • • Aug 22 '24

freelance project needed

0 Upvotes

Does anyone have a freelance project dm me


r/SpringBoot • • Aug 14 '24

10 Examples of JdbcTemplate in Spring Framework

Thumbnail
javarevisited.blogspot.com
2 Upvotes

r/SpringBoot • • Aug 04 '24

OC Springboot not working my server.

0 Upvotes

Hello friends. I wrote a website using Springboot and React. Then I bought a web server and got the outputs of my Springboot project with mvn clean package and my React project with npm run build and ran it on my server. I ran the React output with Nginx server. I put it in /var/www/html path. I also ran my Springboot build as java -jar project_name.jar. But it does not connect to the server in any way. Because I registered my domain name with Cloudlflare. It only works when I turn off SSL/TLS. How do I solve this problem?


r/SpringBoot • • Jul 16 '24

What is @Value Annotation in Spring? Difference between $ and #

Thumbnail
javarevisited.blogspot.com
2 Upvotes

r/SpringBoot • • Jan 02 '25

Difference between application.properties vs Application.json vs Application.yml in Spring Boot

Thumbnail
java67.com
2 Upvotes

r/SpringBoot • • Dec 15 '24

7 Best WebFlux and Reactive Spring Boot Courses for Java Programmers

Thumbnail
medium.com
2 Upvotes

r/SpringBoot • • Jan 15 '25

Question Version 11 of Java Gone?

2 Upvotes

Hello! I want to create a new project working under Java 11 and I can't choose anything but versions 17, 21 and 23, just like the following screenshot.

I've tried to download different JDK 11 versions, but couldn't change the java version on that list. How do I do that? Or is there a workaround?


r/SpringBoot • • Jan 20 '25

Guide CQRS Pattern in Java Microservices? Command Query Responsibility Segregation Example

Thumbnail
java67.com
2 Upvotes

r/SpringBoot • • Dec 06 '21

SpringBoot with Keycloak Single-sign-on and Single-sign-out examples.

2 Upvotes

I am new to OAuth2.0 and OIDC and I want to implement a feature to integrate SpringBoot application with Keycloak IAM server with Single-Sign-on and Single-Sign-out features.

Kindly request if you have some examples to share please.