Text to Speech Speech to Text

main.go 864B

1234567891011121314151617181920212223242526272829303132333435363738
  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. rootCmd.AddCommand(job.newTestCmd())
  26. if err := rootCmd.Execute(); err != nil {
  27. panic(err)
  28. }
  29. }