Text to Speech Speech to Text

main.go 826B

12345678910111213141516171819202122232425262728293031323334353637
  1. package main
  2. import (
  3. "git.links123.net/Slate/CorpusAI/cmd/http"
  4. "git.links123.net/Slate/CorpusAI/cmd/version"
  5. "git.links123.net/Slate/CorpusAI/cmd/job"
  6. "github.com/spf13/cobra"
  7. )
  8. var apiVersion, gitCommit, built string
  9. // @title Campus AI API
  10. // @version 1.0
  11. // @description Campus text to speech / speech to text.
  12. // @termsOfService http://swagger.io/terms/
  13. // @contact.name API Support
  14. // @contact.email slate@links123.com
  15. // @host campusai.links123.net
  16. // @BasePath /v1
  17. func main() {
  18. rootCmd := &cobra.Command{
  19. Use: "CorpusAI",
  20. Short: "CorpusAI api for the project of links123.com's campus",
  21. }
  22. rootCmd.AddCommand(http.RunCommand())
  23. rootCmd.AddCommand(version.RunCommand(apiVersion, gitCommit, built))
  24. rootCmd.AddCommand(job.RunCommand())
  25. if err := rootCmd.Execute(); err != nil {
  26. panic(err)
  27. }
  28. }