Skip to content

Commit

Permalink
修改编译问题
Browse files Browse the repository at this point in the history
update Swift 5
  • Loading branch information
yulingtianxia committed Apr 17, 2019
1 parent 04efc7f commit 08587d6
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 62 deletions.
101 changes: 42 additions & 59 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions iOSSample/AudioEmotion.xcodeproj/project.pbxproj
Expand Up @@ -137,6 +137,7 @@
TargetAttributes = {
A4C080822247800600C87136 = {
CreatedOnToolsVersion = 10.2;
LastSwiftMigration = 1020;
};
};
};
Expand Down Expand Up @@ -343,7 +344,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.yulingtianxia.AudioEmotion;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 arm64e";
};
Expand All @@ -368,7 +369,7 @@
);
PRODUCT_BUNDLE_IDENTIFIER = com.yulingtianxia.AudioEmotion;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALID_ARCHS = "arm64 arm64e";
};
Expand Down
2 changes: 1 addition & 1 deletion iOSSample/AudioEmotion/PredictAudioEmotion.swift
Expand Up @@ -59,7 +59,7 @@ class PredictAudioEmotion: NSObject {
for i in 0...windowSize {
audioData[i] = NSNumber.init(value: bufferData[0][offset + i])
}
let modelInput = AudioEmotionInput(audio: audioData)
let modelInput = AudioEmotionInput(deep_features: audioData)

guard let modelOutput = try? model.prediction(input: modelInput) else {
fatalError("Error calling predict")
Expand Down

0 comments on commit 08587d6

Please sign in to comment.