This project serves as a guide to help you build an application with Persephony. Specifically, the project will:
- Create a file stream of a recorded file made by persephony. Recordings are created when calls send a PerCL command to persephony to record. They can be seen in the recordings tab in the dashboard.
To get started using a persephony account, follow the instructions here.
-
Configure environment variables.
ENV VARIABLE DESCRIPTION ACCOUNT_ID Account ID which can be found under API Keys in Dashboard AUTH_TOKEN Authentication Token which can be found under API Keys in Dashboard -
Provide a value for the variable
recordingIdin StreamARecording.java. If you have created a recording, you will be able to get the recordingId from the recordings tab in your dashboard. To find out more about recordings, check out the recording documentation
-
Build and run the application using command:
$ gradle build && java -Dserver.port=3000 -jar build/libs/gs-spring-boot-0.1.0.jar