Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
STT V1, TTS V1, Vis Rec V3/V4 changes
Browse files Browse the repository at this point in the history
apaparazzi0329 committed Oct 30, 2020
1 parent 8a1543f commit 554ad9f
Showing 23 changed files with 940 additions and 1,437 deletions.
122 changes: 0 additions & 122 deletions Sources/SpeechToTextV1/Models/CreateAcousticModel.swift

This file was deleted.

154 changes: 0 additions & 154 deletions Sources/SpeechToTextV1/Models/CreateLanguageModel.swift

This file was deleted.

50 changes: 0 additions & 50 deletions Sources/SpeechToTextV1/Models/CustomWords.swift

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* (C) Copyright IBM Corp. 2016, 2019.
* (C) Copyright IBM Corp. 2020.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -37,14 +37,14 @@ public struct SpeechRecognitionAlternative: Codable, Equatable {
the word followed by its start and end time in seconds, for example: `[["hello",0.0,1.2],["world",1.2,2.5]]`.
Timestamps are returned only for the best alternative.
*/
public var timestamps: [WordTimestamp]?
public var timestamps: [String]?

/**
A confidence score for each word of the transcript as a list of lists. Each inner list consists of two elements:
the word and its confidence score in the range of 0.0 to 1.0, for example: `[["hello",0.95],["world",0.866]]`.
Confidence scores are returned only for the best alternative and only with results marked as final.
*/
public var wordConfidence: [WordConfidence]?
public var wordConfidence: [String]?

// Map each property name to the key that shall be used for encoding/decoding.
private enum CodingKeys: String, CodingKey {
Loading

0 comments on commit 554ad9f

Please sign in to comment.