Skip to content

Commit

Permalink
Release 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
langma committed Apr 29, 2022
1 parent e5f83db commit 3f5f919
Show file tree
Hide file tree
Showing 10 changed files with 1,074 additions and 239 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## [0.6.0](https://github.com/speechly/api/tree/0.6.0) (2022-04-29)

[Full Changelog](https://github.com/speechly/api/compare/0.5.0...0.6.0)

**Merged pull requests:**

- Support for config time options in SLU [\#36](https://github.com/speechly/api/pull/36) ([teelisyys](https://github.com/teelisyys))

## [0.5.0](https://github.com/speechly/api/tree/0.5.0) (2022-01-20)

[Full Changelog](https://github.com/speechly/api/compare/0.4.5...0.5.0)
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PROTODOC := docker run -it --rm -v $(CURDIR):$(CURDIR) -w $(CURDIR) --entrypoin
CHANGELOG := docker run -it --rm -v $(CURDIR):$(CURDIR) -w $(CURDIR) ferrarimarco/github-changelog-generator
PYTHON := docker run -it --rm -v $(CURDIR):$(CURDIR) -w $(CURDIR) python:3-slim python

SUBDIRS = python javascript dotnet java
SUBDIRS = dotnet java
APIREFS = docs/slu.md docs/identity.md docs/sal.md docs/analytics.md

test:
Expand Down
64 changes: 64 additions & 0 deletions Sources/SpeechlyAPI/speechly_slu_v1_slu.pb.swift
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ public struct Speechly_Slu_V1_SLUConfig {
/// Defaults to the target application language.
public var languageCode: String = String()

/// Special options to change the default behaviour of the SLU.
public var options: [Speechly_Slu_V1_SLUConfig.Option] = []

public var unknownFields = SwiftProtobuf.UnknownStorage()

/// The encoding of the audio data sent in the stream.
Expand Down Expand Up @@ -170,6 +173,23 @@ public struct Speechly_Slu_V1_SLUConfig {

}

/// Option to change the default behaviour of the SLU.
public struct Option {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.

/// The key of the option to be set.
public var key: String = String()

/// The values to set the option to.
public var value: [String] = []

public var unknownFields = SwiftProtobuf.UnknownStorage()

public init() {}
}

public init() {}
}

Expand Down Expand Up @@ -783,6 +803,7 @@ extension Speechly_Slu_V1_SLUConfig: SwiftProtobuf.Message, SwiftProtobuf._Messa
2: .same(proto: "channels"),
3: .standard(proto: "sample_rate_hertz"),
4: .standard(proto: "language_code"),
5: .same(proto: "options"),
]

public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
Expand All @@ -795,6 +816,7 @@ extension Speechly_Slu_V1_SLUConfig: SwiftProtobuf.Message, SwiftProtobuf._Messa
case 2: try { try decoder.decodeSingularInt32Field(value: &self.channels) }()
case 3: try { try decoder.decodeSingularInt32Field(value: &self.sampleRateHertz) }()
case 4: try { try decoder.decodeSingularStringField(value: &self.languageCode) }()
case 5: try { try decoder.decodeRepeatedMessageField(value: &self.options) }()
default: break
}
}
Expand All @@ -813,6 +835,9 @@ extension Speechly_Slu_V1_SLUConfig: SwiftProtobuf.Message, SwiftProtobuf._Messa
if !self.languageCode.isEmpty {
try visitor.visitSingularStringField(value: self.languageCode, fieldNumber: 4)
}
if !self.options.isEmpty {
try visitor.visitRepeatedMessageField(value: self.options, fieldNumber: 5)
}
try unknownFields.traverse(visitor: &visitor)
}

Expand All @@ -821,6 +846,7 @@ extension Speechly_Slu_V1_SLUConfig: SwiftProtobuf.Message, SwiftProtobuf._Messa
if lhs.channels != rhs.channels {return false}
if lhs.sampleRateHertz != rhs.sampleRateHertz {return false}
if lhs.languageCode != rhs.languageCode {return false}
if lhs.options != rhs.options {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
Expand All @@ -832,6 +858,44 @@ extension Speechly_Slu_V1_SLUConfig.Encoding: SwiftProtobuf._ProtoNameProviding
]
}

extension Speechly_Slu_V1_SLUConfig.Option: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = Speechly_Slu_V1_SLUConfig.protoMessageName + ".Option"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "key"),
2: .same(proto: "value"),
]

public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch fieldNumber {
case 1: try { try decoder.decodeSingularStringField(value: &self.key) }()
case 2: try { try decoder.decodeRepeatedStringField(value: &self.value) }()
default: break
}
}
}

public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.key.isEmpty {
try visitor.visitSingularStringField(value: self.key, fieldNumber: 1)
}
if !self.value.isEmpty {
try visitor.visitRepeatedStringField(value: self.value, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}

public static func ==(lhs: Speechly_Slu_V1_SLUConfig.Option, rhs: Speechly_Slu_V1_SLUConfig.Option) -> Bool {
if lhs.key != rhs.key {return false}
if lhs.value != rhs.value {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}

extension Speechly_Slu_V1_SLUEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
public static let protoMessageName: String = _protobuf_package + ".SLUEvent"
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
Expand Down

0 comments on commit 3f5f919

Please sign in to comment.