Package ai.rev.speechtotext
Interface ApiInterface
-
public interface ApiInterfaceThe ApiInterface is a type-safe Retrofit interface that presents all the endpoints that are made to communicate with the Rev.AI API.
-
-
Field Summary
Fields Modifier and Type Field Description static StringREV_JSON_CONTENT_TYPEstatic StringREV_TEXT_CONTENT_TYPE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description retrofit2.Call<Void>deleteJob(String jobID)retrofit2.Call<RevAiAccount>getAccount()retrofit2.Call<okhttp3.ResponseBody>getCaptionText(String jobID, Map<String,String> query, Map<String,String> contentType)retrofit2.Call<RevAiJob>getJobDetails(String jobID)retrofit2.Call<List<RevAiJob>>getListOfJobs(Map<String,String> options)retrofit2.Call<RevAiTranscript>getTranscriptObject(String jobID)retrofit2.Call<String>getTranscriptText(String jobID)retrofit2.Call<RevAiJob>submitJobLocalFile(okhttp3.MultipartBody.Part file, RevAiJobOptions options)retrofit2.Call<RevAiJob>submitJobUrl(RevAiJobOptions options)
-
-
-
Field Detail
-
REV_JSON_CONTENT_TYPE
static final String REV_JSON_CONTENT_TYPE
- See Also:
- Constant Field Values
-
REV_TEXT_CONTENT_TYPE
static final String REV_TEXT_CONTENT_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAccount
@GET("account") retrofit2.Call<RevAiAccount> getAccount()
-
getListOfJobs
@GET("jobs") retrofit2.Call<List<RevAiJob>> getListOfJobs(@QueryMap Map<String,String> options)
-
getTranscriptObject
@Headers("Accept: application/vnd.rev.transcript.v1.0+json") @GET("jobs/{id}/transcript") retrofit2.Call<RevAiTranscript> getTranscriptObject(@Path("id") String jobID)
-
getTranscriptText
@Headers("Accept: text/plain") @GET("jobs/{id}/transcript") retrofit2.Call<String> getTranscriptText(@Path("id") String jobID)
-
submitJobUrl
@POST("jobs") retrofit2.Call<RevAiJob> submitJobUrl(@Body RevAiJobOptions options)
-
submitJobLocalFile
@Multipart @POST("jobs") retrofit2.Call<RevAiJob> submitJobLocalFile(@Part okhttp3.MultipartBody.Part file, @Part("options") RevAiJobOptions options)
-
-