Hi people. We work as a computer scientists compan...
# server-api
l
Hi people. We work as a computer scientists company and we want to dive in AI solutions. Currently our goal is to build a vocal assistant to help users via a mobile phone to record their purchases easily just by using the voice and chat with a virtual assistant. The tech stack used so far: flutter, python (for the agent), expressjs (where there is already an existing bucket of api services on managing purchases). I started the mobile layer using this template https://github.com/livekit-examples/voice-assistant-flutter. It was an interesting start but we want to dig deeper to enhance our solution. We were able to run that starting template and link it to our python agent, by running locally the flutter project using a Sandbox Token Server, but when generating an apk, the app does not work anymore. Please how could I solve that ?
f
hi, when you install and run the apk, are there any errors in the logcat?
l
i had no error. As I said, while on debug mode on vscode and running the mobile app using the Sandbox Token server, it worked well. But after building an apk, when clicking the button to discuss with the Agent, it does not work. Do I need to generate the token via the server for it to work well ?
v
To setup without the LiveKit CLI, clone the repository and then either create a
.env
with a
LIVEKIT_SANDBOX_ID
(if using a Sandbox Token Server), or open
token_service.dart
and add your manually generated URL and token.
Token generation
In a production environment, you will be responsible for developing a solution to generate tokens for your userswhich is integrated with your authentication solution. You should disable your sandbox token server and modify
token_service.dart
to use your own token server.